Skip to main content
Glama

polish_get_diff

Preview formatting changes for a single file without modifying the original, so you can review formatter output before applying it.

Instructions

Preview formatting changes for one file without modifying it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "polish_get_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full load, and it does disclose the critical trait: no file is modified. It does not say whether the preview respects project rules, whether it reports 'no changes', or what the diff output looks like, which matters because there is no output schema.

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?

One sentence, front-loaded with the operation and immediately followed by the non-mutating guarantee. Nothing superfluous and nothing buried.

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 one-parameter read-only tool this is nearly sufficient, but with no annotations and no output schema the description should at least sketch what the preview yields (a diff, a list of proposed edits) and confirm it never writes. As written, an agent knows the intent but not the result.

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 schema has 0% description coverage for the single required 'path' parameter, but the description's 'for one file' adds meaning by implying it is a file path rather than a directory or glob. No format, relativity, or absolute-path guidance is given, so the coverage gap is only partially compensated.

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

Purpose4/5

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

States a specific verb (preview) plus resource (formatting changes) and scope (one file), and the phrase 'without modifying it' separates it from mutating siblings like polish_format_file. It stops short of naming an alternative, so the differentiation is inferential rather than explicit.

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

Usage Guidelines3/5

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

The dry-run framing implies 'use before applying formatting,' but the description never says when to prefer this over polish_format_file or polish_check_file, nor states any prerequisites such as config discovery. Usage must be inferred from the name and the 'preview' framing.

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