Skip to main content
Glama

x402node_text_diff

Compare two texts and identify added, removed, and unchanged segments. Supports line, word, or character granularity.

Instructions

Text diff / text comparison / diff two strings / line diff / word diff / character diff / file diff / text patch / unified diff format / compare strings / git diff style / text difference. Compare two texts, return added/removed/unchanged segments. Line, word, or char granularity.

Price: unknown on Base (auto-paid in USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYesOriginal text (required)
bYesModified text (required)
modeNoline|word|char (optional, default 'line')
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must bear full responsibility for behavioral disclosure. However, the description omits critical behavior details such as idempotency, side effects, performance considerations, or authentication requirements. The pricing note (`Price: unknown on Base`) is irrelevant to tool behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is reasonably concise but front-loaded with a long list of synonyms (e.g., 'Text diff / text comparison / ...') that adds redundancy. The inclusion of a pricing line (`Price: unknown...`) is extraneous and slightly violates conciseness. The core purpose and granularity details are clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with only three simple parameters and no output schema, the description adequately covers what the tool does. However, it does not describe the return format or structure of the diff output, which would be helpful. The description is sufficient but not exceptional.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage, with clear descriptions for all three parameters. The tool description adds no additional meaning beyond what the schema already provides. Therefore, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: comparing two texts and returning diffs with added/removed/unchanged segments. It specifies granularity options (line, word, char) and uses multiple synonyms for discoverability. It is distinct from sibling tools, which are mostly Chinese astrology or utility functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides many synonyms but no explicit guidance on when to use this tool versus alternatives. There is no mention of prerequisites, limitations, or scenarios where a different tool might be preferred. The agent must infer usage from the purpose alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/x402node/x402-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server