Skip to main content
Glama

polish_validate

Validates formatting and basic UTF-8 readability across specified files, helping you catch local source issues before review or commit.

Instructions

Check formatting and basic UTF-8 readability for 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": {
      "paths": "<paths>"
    },
    "name": "polish_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. "Check" implies read-only and implies it reports rather than fixes, but that is left to inference; nothing states whether files are modified, whether a formatter must be installed (a polish_install_formatter sibling exists), or whether it works on a single file or a batch.

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

Conciseness3/5

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

A single short sentence with no filler and the object of the check front-loaded, which is structurally sound. However, brevity here is under-specification rather than efficiency — the sentence is too thin to earn its place as the only guidance.

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?

With no annotations, no output schema, and an undocumented parameter, the description should explain scope, side effects, and what a check result contains. It does none of these, so an agent cannot predict the outcome of invoking it.

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% for the single `paths` parameter, so the description must compensate. "for files" hints that entries are file paths rather than directories, but it omits whether paths are relative or absolute, whether directories are accepted, and what the 1–200 item bound means in practice, leaving the parameter largely undocumented.

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

Purpose3/5

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

The verb ("Check") and resource ("formatting and basic UTF-8 readability for files") are identifiable, but the scope is vague: "basic UTF-8 readability" is undefined, and nothing distinguishes this from siblings like polish_check_file, polish_check_project, or polish_analyze_quality. An agent can guess the general function but cannot tell when this tool rather than a sibling applies.

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 guidance, no prerequisites, and no mention of alternatives. With siblings named polish_check_file, polish_check_project, and polish_analyze_quality, the description gives the agent nothing to route between them.

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