Skip to main content
Glama

text all

cli_text_all

Strips deterministic text provenance and optionally regenerates prose spans to remove statistical token watermarks from generated text.

Instructions

Strip deterministic text provenance and optionally regenerate prose spans.

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": {
      "source": "<source>"
    },
    "name": "cli_text_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoseed
outputNoOutput path (default: <source>_clean.<ext>).
sourceYessource
invisibleNoOpt into span-protected local prose regeneration for statistical token watermarks.
ollama_urlNoLocal Ollama Chat Completions base URL (default: http://127.0.0.1:11434/v1).
allow_partialNoKeep rejected prose unchanged and report partial regeneration.
rewriter_modelNoCheckpoint path or model ID for the selected backend.
strict_residualNoWith Ollama, regenerate retained sentences in a second pass.
rewriter_backendNorewriter backendtransformers

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.64.0
    • addedInput schema / properties / ollama_url
      Added value: +{
      +  "description": "Local Ollama Chat Completions base URL (default: http://127.0.0.1:11434/v1).",
      +  "type": "string"
      +}
    • changedInput schema / properties / rewriter_backend / enum
      Previous value: -[
      -  "transformers",
      -  "mlx"
      -]New value: +[
      +  "transformers",
      +  "mlx",
      +  "ollama"
      +]
    • changedInput schema / properties / rewriter_model / description
      Previous value: -"Local checkpoint path or Hugging Face model ID for prose rewriting."New value: +"Checkpoint path or model ID for the selected backend."
    • addedInput schema / properties / strict_residual
      Added value: +{
      +  "description": "With Ollama, regenerate retained sentences in a second pass.",
      +  "type": "boolean"
      +}
  2. Changed3 schema fields changedv0.63.0
    • addedInput schema / properties / allow_partial
      Added value: +{
      +  "description": "Keep rejected prose unchanged and report partial regeneration.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / rewriter_backend
      Added value: +{
      +  "default": "transformers",
      +  "description": "rewriter backend",
      +  "enum": [
      +    "transformers",
      +    "mlx"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / rewriter_model
      Added value: +{
      +  "description": "Local checkpoint path or Hugging Face model ID for prose rewriting.",
      +  "type": "string"
      +}
  3. Addedv0.58.1

TDQS

C2.6/5.0
Behavior2/5

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

With only openWorldHint=false in annotations, the description carries the behavioral burden. It implies mutation via "strip" and optional model-based regeneration, but does not disclose whether source text is overwritten, how output is handled, whether the operation is reversible, or what backend/model requirements apply.

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?

The definition is a single efficient sentence with no filler and the core action is front-loaded. However, the jargon and compressed phrasing reduce immediate clarity for a tool with multiple modes and nine parameters.

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 nine-parameter tool that includes model backends, local Ollama configuration, partial regeneration, and file output behavior, a one-sentence description is insufficient. It omits practical context about side effects, mode selection, and expected outcomes, and there is no output schema to compensate.

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 schema already explains all nine parameters. The description adds only a general mention of optional regeneration and does not clarify parameter interactions, defaults, or backend-specific behavior beyond the schema.

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

Purpose3/5

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

The description names two operations, stripping deterministic text provenance and optionally regenerating prose spans, but "deterministic text provenance" is jargon and the "all" scope is not explained. It does not differentiate this tool from sibling text tools such as cli_text_identify or cli_text_invisible.

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 explicit guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. The word "optionally" hints at a mode choice but does not say when regeneration is appropriate or required.

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