Skip to main content
Glama

polish_check_file

Checks whether a specified file conforms to formatting rules without altering it, so you can identify compliance issues before applying formatter changes.

Instructions

Check formatting compliance without modifying the file.

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

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does deliver the single most important trait: this operation is non-mutating. It says nothing about prerequisites (e.g. whether a formatter must be installed), whether the file must be inside a project, or what a failed check looks like, which are material for a check-style tool.

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 terse sentence that front-loads the action and appends the key constraint; nothing is wasted or buried. It is arguably too terse for the amount of behavior left unexplained, but that is a completeness issue rather than a structural one.

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

Completeness1/5

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

For a check tool with no annotations and no output schema, the description must explain what the check returns (pass/fail, violation list, exit status) and how the path is interpreted; it covers none of this, leaving the agent unable to predict the response. Combined with zero parameter documentation, the definition is materially incomplete.

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?

There is one required parameter ('path') with 0% schema description coverage, and the description adds no meaning about it whatsoever — no indication of whether it is an absolute path, project-relative path, or glob, nor what happens if the file is outside a project. The description therefore fails to compensate for the schema gap.

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 ('Check formatting compliance') and adds a scope constraint ('without modifying the file'), which usefully separates it from the mutating polish_format_file sibling. It does not, however, distinguish itself from polish_lint_file or polish_validate, whose names suggest overlapping check semantics.

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?

Usage is only implied: the phrase 'without modifying the file' signals the read-only inspection case versus formatting, but there is no explicit when-to-use statement and no named alternative the agent should pick instead. The agent must infer the selection rule from sibling names alone.

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