Skip to main content
Glama

polish_format_project

Scans a project and runs installed deterministic formatters while skipping generated, hidden, protected, and ignored directories; supports dry runs to preview changes.

Instructions

Scan and format a project while skipping generated, hidden, protected and ignored directories. Supports dry run.

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_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootYes
dryRunNo
excludeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/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. It discloses scope-skipping (generated, hidden, protected, ignored) and mentions dry run, which is useful, but never states that files are modified in place, whether changes are reversible, what permissions are needed, or what happens to a partially failing project.

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, front-loaded with scope and followed by the dry-run note; there is no filler. The terseness of "Supports dry run." slightly underspecifies what dry run actually reports.

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 mutating tool with no annotations, no output schema, and zero parameter documentation, the description is too thin. An agent cannot tell what a run returns, whether it edits files in place, or how exclude interacts with the built-in skip list.

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 coverage is 0%, so the description must explain root, dryRun, and exclude; it only alludes to dry run. The 'skipping ... ignored directories' phrasing is ambiguous because it is unclear whether that describes built-in defaults or the exclude parameter's effect, and root is never explained.

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?

"Scan and format a project" gives a specific verb pair and a project-level scope, which implicitly separates it from the file- and text-level siblings. It does not name any sibling explicitly, so an agent must infer the project-wide boundary from the word "project" alone.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no alternative is mentioned, even though polish_format_file, polish_format_files, polish_format_changed, and polish_format_text all overlap in function. The agent must guess that whole-project formatting is the differentiator.

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