Skip to content

Conversation

@rakdutta
Copy link
Collaborator

@rakdutta rakdutta commented Oct 29, 2025

Issue #1328

This PR enhances how tool output schemas are managed, validated, and displayed. It adds support for optional schemas, structured result validation, and UI improvements for easier schema editing and review.

Backend:

  • Added _extract_and_validate_structured_content for schema-based result validation using jsonschema.
  • Updated tool logic to store output_schema as None when not provided.
  • Added structured_content to ToolResult for validated data and improved logging for schema changes.

Frontend:

  • Enhanced admin UI to handle optional schemas, manage read-only states, and display validation errors clearly.
  • Updated placeholder text to better reflect the expected schema format.

Verification:
Verified tool behavior in MCP Inspector for both cases — with and without output schema. Functionality works as expected.

@rakdutta rakdutta force-pushed the issue_1328_outputschema branch from ddfe5d2 to 6558b30 Compare October 31, 2025 13:05
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
Signed-off-by: rakdutta <[email protected]>
@rakdutta rakdutta force-pushed the issue_1328_outputschema branch from 0ca6d96 to 5517c3d Compare November 3, 2025 05:39
Signed-off-by: rakdutta <[email protected]>
@rakdutta rakdutta marked this pull request as ready for review November 3, 2025 06:04
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.

2 participants