Skip to main content
Glama

clean_text

Read-onlyIdempotent

Removes filler words and self-corrections from dictated text, then fixes punctuation, dictionary spellings and snippets in a chosen style before you insert it.

Instructions

Clean up dictated text like Sayglyph does before inserting it: fillers, self-corrections, punctuation, dictionary spellings, snippets.

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": "clean_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
styleNoDefault: formal

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral context by enumerating what actually gets altered: fillers and self-corrections removed, punctuation fixed, dictionary spellings and snippets applied. It still leaves unclear whether the dictionary/snippet lists are the user's saved ones (the add_dictionary_term/add_snippet siblings) and whether the 'verbatim' style bypasses cleaning entirely.

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?

One dense sentence with the core operation front-loaded and the transformation list appended efficiently; nothing is redundant. The only weak element is the Sayglyph brand analogy, which costs words without conveying verifiable behavior to an agent unfamiliar with the product.

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 two-parameter, read-only, idempotent transformation tool with no output schema, the description covers the core behavior adequately. It leaves gaps an agent would care about: the result is presumably cleaned text, but return shape is unstated, and the relationship between the `style` choice and cleaning aggressiveness is unexplained. Adequate but not fully complete.

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 50%: `style` is self-documented via its enum and 'Default: formal', while `text` carries only length constraints. The description compensates partially by establishing that `text` is raw dictated input subject to transformation, but it says nothing about what the five style values mean or how 'verbatim' interacts with the cleaning behavior. With half the schema undocumented, this is the baseline 3.

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: cleaning up dictated text, with concrete transformation categories (fillers, self-corrections, punctuation, dictionary spellings, snippets). An agent can distinguish this from transcribe_file or get_last_raw_text because it clearly operates on already-dictated text rather than producing it. The 'like Sayglyph does' comparison is an analogy rather than a functional definition, which slightly weakens precision.

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 phrase 'before inserting it' implies the intended workflow slot (clean prior to pasting/inserting), which is useful contextual guidance. However, there is no explicit when-not guidance and no named alternative among siblings such as get_last_raw_text for retrieving text or transcribe_file for producing it. Usage is implied rather than stated.

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