Skip to main content
Glama

get_text_diff

Fetch block-level text diff of a completed comparison. Return exact added, removed, and modified text with word-level spans for precise quoting.

Instructions

Fetch the block-level text diff of a finished comparison. Returns summary counters plus diff blocks with their content: added and removed blocks carry the affected text, modified blocks also carry word-level spans marking exactly which words changed. By default only changed blocks are returned (only_changed=true); set only_changed=false to include equal blocks for full context. Best when you need to quote exact text changes. Works for both text and visual comparisons. Does not consume credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_blocksNoMaximum number of blocks to return
only_changedNoReturn only added/removed/modified blocks, skipping equal ones
comparison_idYesThe comparison UUID
Behavior5/5

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

With no annotations, the description carries full behavioral disclosure. It describes the return format, default filtering behavior, ability to include equal blocks, support for both text and visual comparisons, and explicitly states 'Does not consume credits.' This goes well beyond the minimal requirement.

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

Conciseness5/5

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

The description is three sentences, front-loaded with the core purpose, then details, then usage guidance. Every sentence contributes unique information with no redundancy or filler.

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

Completeness5/5

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

Despite having no output schema, the description thoroughly explains the return structure and behavior. It covers prerequisites ('finished comparison'), parameter behavior, credit implications, and text vs. visual support, making it complete for an API with 3 well-documented parameters.

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?

Schema coverage is 100%, so the baseline is 3. The description adds a small amount of value by explaining the default behavior of only_changed and the use case for setting it to false, but it does not provide deeper semantics beyond what the schema already documents.

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 identifies the tool's function: fetching block-level text diff of a finished comparison, including specific output details (summary counters, diff blocks, word-level spans). This distinguishes it from siblings like summarize_visual_diff or get_comparison by focusing on exact text changes.

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

Usage Guidelines4/5

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

The description provides clear usage context with 'Best when you need to quote exact text changes' and notes it works for both text and visual comparisons. It does not explicitly name alternative tools or state when not to use it, but the guidance is sufficient for selection.

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/sweetcucumbersalad/differino-mcp'

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