Skip to main content
Glama

polish_analyze_quality

Measure line lengths and approximate bracket nesting in one source file to assess basic readability.

Instructions

Measure line lengths and approximate bracket nesting for one file. Nesting is a documented lexical heuristic.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
lineLengthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.1/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 behavioral burden, and it does disclose one real trait: the nesting result is an 'approximate' and 'documented lexical heuristic', warning the agent not to treat it as exact. It does not state that the file is only read and never modified, nor how quickly it runs or what it returns.

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 the core action and followed by the accuracy caveat; nothing is redundant. The terseness is efficient but leaves gaps addressed in the completeness dimension.

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 tool with 0% schema coverage and no output schema, the description should explain what 'lineLength' controls and at least sketch the returned metrics. As written, an agent knows the broad purpose but not how to set the optional parameter or what result shape to expect.

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%, so the description must compensate, but it never mentions either parameter. 'path' is self-evident, yet 'lineLength' (integer 40-300) is left undefined — an agent cannot tell whether it is a threshold, a measurement target, or a reporting cutoff.

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?

The description names a concrete verb ('Measure') and resource ('line lengths and approximate bracket nesting') scoped to 'one file', which is specific enough to distinguish this from format/lint siblings. It stops short of explicitly saying how it differs from polish_check_file, which also inspects a single file.

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 'for one file' phrasing implies this is a single-file scope rather than a project-level tool, giving an implicit usage signal. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g., polish_check_file, polish_check_project), so an agent must infer the boundary.

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