Add Optional “prerequisites” Hints to MCP Tools #1169
tybalex
started this conversation in
Ideas - General
Replies: 0 comments 1 reply
-
|
There are two features already in the spec that should help with this:
|
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Your Idea
Summary
Introduce an optional
prerequisitesfield in each tool’s descriptor to help agents to plan multi-step calls when one tool’s input might depends on another’s output—without changing server registration semantics.Motivation & Example
I have the following use case that agents often miss that
create_emailtool needs a real email address when given only a name.In my Outlook MCP server:
Desired flow:
Embedding this hint in the tool metadata removes brittle prompt hacks and makes the intended sequence explicit.
Schema:
Json Schema change:
Example Python SDK Usage
When is this feature helpful
Medium-to-Large MCP Servers with 10-20+ tools with chains.
Backward compatibility
Leave a 👍 if you’d like to see this land
Scope
Beta Was this translation helpful? Give feedback.
All reactions