Skip to main content
Glama

tsm_diff_digest

Compress a git diff into a structured summary of changed areas, behavior changes, risks, and overview. Helps models quickly understand large diffs.

Instructions

Compress a git diff into a structured summary of changed areas, behavior changes, risks, and a one-paragraph overview. Helps the main model quickly understand large diffs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusNoAnalysis focus: behavior changes, risks, or general summary
diff_textYesGit diff or patch text to analyze
Behavior2/5

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

No annotations provided; description does not disclose behavioral traits such as whether the tool is read-only, destructive, or requires any permissions. It only describes the output without clarifying side effects or constraints, leaving a gap for an agent.

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?

Two sentences, no redundant information. First sentence states core function and output, second sentence provides use case. Economical and clear.

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

Completeness4/5

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

No output schema, but description outlines the kind of output (structured summary with specific components). For a tool with 2 parameters and no nested objects, this is fairly complete. Could be improved with more specific output format details.

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 baseline is 3. Description adds marginal value by linking the focus enum options to the output components ('behavior changes, risks' correspond to enum values). No further parameter details beyond schema.

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?

Description clearly states verb 'compress' and resource 'git diff', and specifies output includes 'structured summary of changed areas, behavior changes, risks, and a one-paragraph overview'. Differentiates from siblings like tsm_summarize or tsm_classify by being specific to git diffs.

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?

Description says 'Helps the main model quickly understand large diffs', which implies usage context. However, no explicit when-not or alternatives to sibling tools are provided, but the specificity of the tool name and description makes the use case clear.

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/AndersHsueh/tokens-saver-mcp'

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