Skip to main content
Glama

polish_lint_file

Runs the installed language-specific linter on a file to detect issues without formatting or applying fixes.

Instructions

Run the installed language-specific linter for a file. Linting does not format or apply fixes.

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

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does establish that linting is non-mutating — useful behavioral signal. It says nothing about what happens when no linter is installed, whether it errors on lint findings, or how diagnostics are returned, which are the traits an agent most needs here.

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

Conciseness5/5

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

Two short sentences with zero filler, and the restrictive scope statement is front-loaded right after the purpose. Nothing could be cut without losing meaning.

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

Completeness4/5

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

For a simple one-parameter, no-annotation tool, the description covers purpose, scope, and the non-mutating guarantee. Minor gaps remain around missing-linter behavior and output shape, but the tool's simplicity keeps that from being a serious deficiency.

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

Parameters3/5

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

Schema coverage is 0% for the single required 'path' parameter, so the description must compensate. 'For a file' does imply the path targets a single file and that the linter is selected by language automatically, but it adds no constraints such as relative-vs-absolute paths or behavior on directories.

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 ('Run the installed language-specific linter for a file') and adds a negative scope clause ('does not format or apply fixes') that separates it from format-style siblings. It stops short of naming polish_format_file or polish_check_file explicitly, so differentiation is inferred rather than stated.

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 clause 'does not format or apply fixes' implicitly tells the agent when not to pick this tool and handily rules out mutation expectations. However, there is no explicit condition for when to choose it (e.g., 'use when you only want diagnostics'), and no sibling is named as the alternative for fixing issues.

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