Skip to content

Add docs with more details on testing tools and update behavior for optional values #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

olaservo
Copy link
Member

@olaservo olaservo commented Apr 29, 2025

This is related to a few recurring issues and recent changes with how the Tools UI is working (or not) in certain scenarios. The intention of this doc is to call out more explicitly what is by design, and what to expect in the UI when using Inspector when testing different types of input parameters.

How Has This Been Tested?

Tests are updated, but doc needs to be reviewed to ensure its consistent with what we actually want to happen in the UI.

Breaking Changes

See: docs/tools-testing.md for proposal for expected behavior.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

@olaservo olaservo changed the title Add docs with more details on testing Tools Add docs with more details on testing tools and update behavior for optional values Apr 30, 2025
| ------------------------- | ------------------------------ | --------------------------------- |
| Optional field (any type) | `{"required": false}` | Omit field entirely from request |
| Nullable field | `{"type": ["string", "null"]}` | May explicitly set to `null` |
| Empty array (when set) | `{"type": "array"}` | Send `[]` if explicitly set empty |
Copy link
Member Author

@olaservo olaservo Apr 30, 2025

Choose a reason for hiding this comment

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

Related to the above changes - want some feedback on if this should be the expected behavior for optional objects and arrays.

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