Get Tool Contract
get_tool_contractInspect the exact JSON input schema and permissions for a tool available to this connection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
get_tool_contractInspect the exact JSON input schema and permissions for a tool available to this connection.
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds that the response includes permissions, which is genuine context beyond annotations, but says nothing about error behavior when a tool name is invalid or unknown.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler; the scope ('available to this connection') and the deliverable (schema + permissions) are both stated immediately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return-value detail is not required, and the description names both payload parts (schema and permissions). The only gap is disambiguation from the several other schema-related siblings.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% and the single 'name' parameter is undocumented in the schema. The description implies it is the tool name ('for a tool available to this connection'), which partially compensates, but it never states whether it is case-sensitive or what qualifies as a valid name.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Inspect the exact JSON input schema and permissions for a tool'), so an agent knows the output is a schema/permission contract rather than data. It doesn't differentiate itself from siblings like get_schema or get_app_schema, which are plausibly adjacent, leaving ambiguity about which one to pick.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'available to this connection' implies scope and preconditions, which is a useful usage cue. However, there is no explicit when-to-use guidance and no mention of get_schema or get_app_schema as alternatives, so the agent must infer the boundary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.