Skip to main content
Glama

polish_format_changed

Formats Git-changed and untracked, non-ignored files with installed formatters; supports dry-run preview before applying changes.

Instructions

Format tracked files changed relative to Git HEAD and untracked, non-ignored files.

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": {
      "root": "<root>"
    },
    "name": "polish_format_changed"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootYes
dryRunNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses which files are targeted — genuinely useful selection semantics — but never says that files are rewritten in place, whether changes are reversible or undoable, what happens on parse errors, or what the tool returns.

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

Conciseness4/5

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

A single compact sentence with the file-selection constraint front-loaded and no filler. It is efficient, though the extreme terseness is part of why other dimensions are underspecified.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and 0% parameter documentation, the description is far too thin. An agent still cannot tell how to supply the root path, what dryRun does, or what a successful call produces.

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

Parameters1/5

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

Schema description coverage is 0% for two parameters, and the description mentions neither 'root' nor 'dryRun'. The only hint at a parameter is the indirect reference to Git context, so nothing compensates for the undocumented schema.

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 (format) and precisely defines the file set: tracked files changed relative to Git HEAD plus untracked, non-ignored files. That scope implicitly separates it from whole-project or single-file formatting siblings, though no sibling is named explicitly.

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 'relative to Git HEAD plus untracked' clause implies when this tool is appropriate (a changed-files-only pass), but there is no explicit guidance about when to pick it over polish_format_files or polish_format_project, and no stated prerequisites such as being inside a Git repo.

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