Skip to main content
Glama

polish_format_files

Formats a specified list of source files by detecting each file type and applying locally installed deterministic formatters, with an optional dry run to review changes before writing.

Instructions

Format a bounded collection of files. Each file is independently detected and safely processed.

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": {
      "paths": "<paths>"
    },
    "name": "polish_format_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYes
dryRunNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden for what is clearly a mutating operation. "Safely processed" is unsubstantiated filler: it never says whether files are rewritten in place, whether a dry-run mode exists, what happens on partial failure, or whether the operation is reversible.

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?

Two short sentences with the purpose front-loaded and no redundancy. The phrase "safely processed" is vague but not wasteful in length; the issue is under-specification rather than verbosity.

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 multi-file mutation tool with no annotations, no output schema, and no parameter documentation, the description is far too thin. An agent cannot determine from it whether files are modified on disk, what `dryRun` does, or how partial failures across up to 200 files are reported.

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

Parameters2/5

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

Schema description coverage is 0% across two parameters, so the description must compensate and does not. It never explains that `paths` are file paths constrained to 200 entries, nor does it mention `dryRun` at all, leaving a safety-critical flag entirely undocumented in prose.

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 and resource ("Format a bounded collection of files"), which contrasts with single-file and text siblings by implying batch scope. The second sentence adds that per-file language detection happens, distinguishing it from a project-wide format. It stops short of explicitly naming any sibling, but the resource scope is clear.

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?

Batch-of-files scope only implicitly signals when to prefer this over polish_format_file or polish_format_project; there is no explicit when-to-use or when-not guidance. "Bounded collection" hints that very large inputs should be split, but gives no threshold and names no alternative.

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