Replies: 1 comment
-
I now see that only a few specific response types are expected from the server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pre-submission Checklist
Your Idea
Reading the specs, it seems that the server only specifies the schema for the input it is expecting a tool to be called with. It doesn't specifies the schema for its response.
I was curious about the rational behind limiting the schema to only the input. Most API schemas, including JSON based one (ie GraphQL), describe both. Doing so is particularly useful for the client to help ensure that it can handle all types of response. The alternative seems to be making a few requests, looking at the different shapes of response that come back, and building support for those. This is brittle as other shapes of response can be returned in production and the client would then break.
I'm sure adding a schema for the response has been evaluated when writing the specs. Before suggesting that MCP should require this to be done, I was curious to learn about why this was not part of initial version.
Scope
Beta Was this translation helpful? Give feedback.
All reactions