Skip to main content
Glama

polish_format_text

Formats supplied source text without writing files to disk, selecting the installed formatter from the provided path extension for local formatting review.

Instructions

Format supplied source text without writing to disk. Requires a representative path extension.

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": {
      "text": "<text>",
      "path": "<path>"
    },
    "name": "polish_format_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
pathYes
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description does the useful work of declaring the operation is non-destructive to disk and that a path extension is mandatory. Beyond that it is silent: no statement of what is returned, whether project rules or formatter config are applied, or whether unparseable input errors out.

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, zero filler, with the non-obvious constraint (no disk write) front-loaded ahead of the path prerequisite. Nothing could be cut without losing information.

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

Completeness3/5

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

For a three-parameter tool with no annotations and no output schema, the description covers the mutation-safety profile and the path prerequisite but leaves the return value and the influence of cwd/project configuration unstated. An agent can call it, but cannot predict the response shape.

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 description coverage is 0%, so the description has to compensate. It clarifies the non-obvious role of `path` as a representative path extension (used to infer the language/formatter, not a file to read) and identifies `text` as the source to format, but `cwd` and the exact expected form of the path value remain undocumented.

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?

"Format supplied source text" gives a specific verb and resource, and "without writing to disk" carves out a clear boundary against the file/project formatting siblings in the namespace. It stops short of naming an alternative outright, but the in-memory vs on-disk distinction is inferable.

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 implicit guidance is 'use when you already hold the text in memory rather than pointing at a file', reinforced by the requirement for a representative path extension. There is no explicit when-not clause or named sibling alternative, so the agent must infer the routing from the phrasing.

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