Skip to main content
Glama

Normalize Text

normalize_text
Read-onlyIdempotent

Cleaned text plus a list of every change. For text typed without diacritics, from speech recognition or OCR, or for analytics. Changes a word only when the evidence is clear (the winning spelling at least 5x commoner); the rest are listed in undecided with their options. Words the lexicon knows are never respelled except to add diacritics or fix broken encoding.

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

Input Schema

NameRequiredDescriptionDefault
langYessl Slovenian, hr Croatian, sr Serbian; auto picks the language whose lexicon knows most words
textYesUp to 20,000 characters
stepsNodiacritics: restore č ć š ž đ where one spelling clearly wins; spelling: fix known misspellings; lemmas: base form and reading per word; entities: names with their Wikidata ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world safety, and the description adds real behavioral policy: changes only when a spelling is at least 5x commoner, leftovers surface in `undecided` with their options, and lexicon-known words are never respelled except for diacritics or encoding fixes. That tells the agent how conservative and reversible the output is, which no annotation says.

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 output shape and the use cases are front-loaded, and each clause carries information about the decision threshold or the no-respell rule. It is dense but coherent; the opening fragment 'Cleaned text plus a list of every change' is slightly elliptical as a sentence.

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

Completeness4/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 full schema coverage, an output schema, and rich annotations, the description supplies the remaining judgment layer: when normalization applies and how aggressive it is. It omits any mention of the 20,000-character limit, language selection (`sl`/`hr`/`sr`/`auto`), and the step pipeline, but those are documented in the schema.

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 enums and descriptions on `lang` and `steps`, so the baseline is 3. The description adds behavioral meaning to how changes occur but never references `text`, `lang`, or `steps` directly, so it does not extend parameter semantics beyond the schema.

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 description conveys what the tool produces (cleaned text plus a change list) and the conditions it targets (unaccented typing, ASR, OCR, analytics), so an agent understands it normalizes text conservatively. It never names a sibling like check_orthography or suggest_replacements, so differentiation is inferred rather than stated.

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?

It gives explicit use conditions: text typed without diacritics, speech-recognition or OCR output, and analytics pipelines. It stops short of when-not-to-use or naming an alternative among the eight siblings, which keeps it below a 5.

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