Skip to main content
Glama

Remove terminal ANSI escape codes

strip-ansi
Read-onlyIdempotent

Strip terminal ANSI escape codes from text. Use to make colorized logs readable for indexing or display. Returns plain text without interpreting log entries.

Input Schema

NameRequiredDescriptionDefault
textYesTerminal output string containing optional ANSI escape sequences.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds value beyond that by disclosing the return behavior ('Returns plain text without interpreting log entries'), clarifying that log content is passed through untouched. It does not mention truncation or size-limit behavior, though maxLength 4096 is in the schema.

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?

Three short sentences, front-loaded with the operation and then the use case and return behavior. Every sentence carries information and none is filler.

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

Completeness5/5

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

For a one-parameter, read-only text transformation with a fully described schema and rich annotations, the description covers purpose, usage, and output nature. Nothing an agent needs to invoke it correctly is missing, and no output schema is required for this simple string return.

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 100% with a single self-documenting 'text' parameter, so the baseline is 3. The description adds no syntax, format, or encoding detail about the input beyond what the schema already states.

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

Purpose5/5

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

States a specific verb and resource ('Strip terminal ANSI escape codes from text'), which is unambiguous and clearly distinct from the minify-* and optimize-* siblings. An agent can identify the operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete usage context ('Use to make colorized logs readable for indexing or display'), which tells the agent when this tool applies. However, it names no alternatives or exclusions, so there is no explicit routing guidance against the sibling tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources