Skip to content

fix(http): serialize JSON query values - #115

Open
tridev-tej wants to merge 4 commits into
universal-tool-calling-protocol:mainfrom
tridev-tej:tejesh/python-utcp-107-query-params
Open

tridev-tej wants to merge 4 commits into
universal-tool-calling-protocol:mainfrom
tridev-tej:tejesh/python-utcp-107-query-params

Conversation

@tridev-tej

@tridev-tej tridev-tej commented Oct 23, 2026 •

Copy link
Copy Markdown

I serialize dict, boolean and null query values after authentication, so configured query keys replace caller values first. Repeated keys keep their order, including interleaved values.

Fixes #107


Summary by cubic

Serializes dict, boolean, and null query values as JSON in the HTTP query string so structured values reach the endpoint as JSON strings. Repeated keys, including interleaved ones, keep their order, and MultiDict mappings are preserved. Fixes #107.

  • Serialization runs after authentication, so configured query keys replace caller values first.
  • Unsupported values (custom objects, non-finite floats) raise errors before the request is sent, and caller arguments are never mutated.
  • Declares multidict as a direct dependency for query mapping support.

Written for commit 69b79e6. Summary will update on new commits.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply to a comment to ask cubic a question or push back. It learns from your replies.

View guided diff | Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

call_tool passes object-valued query params straight to aiohttp, raising an unhandled TypeError instead of JSON-encoding them

1 participant