Skip to content

feat: add include_response_info parameter to control response documen… #215

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Edison-A-N
Copy link

Describe your changes

Add include_response_info parameter to FastApiMCP and convert_openapi_to_mcp_tools to control whether response information is included in tool descriptions. When set to False, completely removes all response documentation (status codes, examples, schemas) from tool descriptions to reduce context consumption.

Issue ticket number and link (if applicable)

#212

Screenshots of the feature / bugfix

Checklist before requesting a review

  • Added relevant tests
  • Run ruff & mypy
  • All tests pass

…tation

Add parameter to disable automatic response info in tool descriptions.
Defaults to True for backward compatibility.
Resolves tadata-org#212
@strange0x
Copy link

Good day 😊

@strange0x
Copy link

Nice writing

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