text_diff
Compare two texts and return line-by-line differences
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_a | Yes | First text (before) | |
| text_b | Yes | Second text (after) |
Compare two texts and return line-by-line differences
| Name | Required | Description | Default |
|---|---|---|---|
| text_a | Yes | First text (before) | |
| text_b | Yes | Second text (after) |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It says the tool returns differences but does not describe output format, case/whitespace handling, safety profile, or any other behavioral trait beyond the core operation.
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 a single, front-loaded sentence with no redundant or filler content. Every word contributes to stating the operation and return.
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?
The tool is simple and its input schema is fully documented, but there is no output schema, so the description should ideally explain the return structure more than just 'line-by-line differences'. It is minimally adequate but leaves the agent to infer how the differences are represented.
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 100%, so the schema already documents both parameters as first text (before) and second text (after). The description adds no parameter-level meaning beyond what the schema already provides, so the baseline of 3 is appropriate.
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 gives a specific verb ('Compare'), resource ('two texts'), and output nature ('line-by-line differences'). It is clearly distinct from sibling text tools like proofread_text or analyze_readability, though it does not explicitly name any sibling alternative.
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 states what the tool does but gives no guidance on when to use it versus alternatives, no prerequisites, and no exclusions. An agent must infer that this is the right tool whenever a diff is needed.
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.