Skip to main content
Glama

format_output

Applies colors and styling to terminal text to improve readability and make output easier to scan.

Instructions

Formats output with colors and styling for better readability. Makes terminal output pretty!

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>"
    },
    "name": "format_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to format
styleNoStyle to apply: bold, red, green, hidden, clear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, and it falls short. It frames the tool as purely cosmetic ('pretty!'), yet the schema exposes styles like 'hidden' and 'clear' that can make text invisible or wipe terminal content, and an undocumented 'deceive' style. Those side effects are exactly what an agent needs disclosed before invoking, and the description does not mention any of them.

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?

The lead sentence is tight and front-loaded, but the exclamation-marked second sentence adds no information and undercuts the tone of a tool whose enum includes a 'deceive' mode. Roughly half the text is waste.

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 simple two-parameter tool with full schema coverage and no output schema, the definition is minimally sufficient to call it. But it is incomplete where it matters: the effects of the non-cosmetic styles (hidden, clear, deceive) are never explained, and no return value shape is implied.

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 100%, so the baseline is 3: the schema explains 'text' and enumerates the style values. However, the description adds nothing, and it omits the 'deceive' style that appears in the enum but is described in neither the prose nor the schema's own style list, leaving one value semantically unexplained.

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 first sentence gives a specific verb and resource: formats output with colors and styling. It is clear what the tool does, but it offers no differentiation from siblings like render_template, which could plausibly also format output, and the second sentence is filler.

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 such as render_template. The only contextual hint is 'terminal output', which the caller must infer applies to their situation.

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