Skip to content

Conversation

@nikomatsakis
Copy link
Member

No description provided.

MCP structured output requires JSON objects. Now we store whether the
tool has an output_schema at registration time and use that to decide
between CallToolResult::structured() and CallToolResult::success().

Also uses schema_for_output() which returns Err for non-object types,
so the output_schema is correctly set to None for these tools.
@nikomatsakis nikomatsakis merged commit 2216ae6 into symposium-dev:main Dec 23, 2025
1 check passed
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.

1 participant