json_sort_keys
Recursively sort JSON object keys. When: Canonicalize JSON key order for stable diffs/hashes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Recursively sort JSON object keys. When: Canonicalize JSON key order for stable diffs/hashes.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden. It discloses that sorting is recursive, but lacks details on error handling (e.g., invalid JSON input) or output format. For a simple utility, this is adequate but not comprehensive.
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?
The description is extremely concise with two sentences. The first sentence states the action, the second provides usage guidance. No wasted words, and the key information is front-loaded.
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?
Given the tool has one parameter, no output schema, and no annotations, the description covers the main purpose and usage context. However, it does not describe the output (likely a JSON string) or edge cases, leaving some gaps for an agent.
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 description coverage is 0%, so the description must compensate. It only implies the input is JSON text via the name 'text' but does not describe it explicitly. No details on format or constraints are added beyond the schema's property 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?
The description states 'Recursively sort JSON object keys' which is a clear verb+resource. It also provides a 'When' clause that specifies the use case. This differentiates it from sibling tools like json_format which may not sort keys recursively.
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 description explicitly says 'When: Canonicalize JSON key order for stable diffs/hashes.' This gives clear usage context. It does not explicitly mention alternatives or when not to use, but the stated purpose is sufficient for an agent to decide.
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.