Skip to main content
Glama
arabic-text-mcp

arabic-text-mcp

normalize

Prepares Arabic text for search and matching by stripping diacritics and tatweel, with optional unification of alef, yaa, taa marbuta, and hamza carriers.

Instructions

Normalize Arabic for search/matching: strips diacritics and tatweel, optionally unifies alef/yaa/taa-marbuta/hamza carriers.

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

Input Schema

NameRequiredDescriptionDefault
yaaNo
alefNo
textYes
taa_marbutaNo
hamza_on_carrierNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does disclose a key behavioral distinction the schema cannot: diacritic and tatweel stripping is unconditional, while the four unification steps are conditional. It omits idempotency, whether the input is mutated or a new string returned, and any performance/return-shape notes, leaving some gaps for an annotation-free tool.

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?

A single dense sentence, front-loaded with the verb and domain, with every clause carrying information. No filler.

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?

An output schema exists, so return values need not be explained, and the core transformation semantics are covered. But for a 5-parameter tool with zero annotation and zero schema-description coverage, the missing default values and the absent clarification of what "unify" concretely does to each character group leave the definition incompletely specified.

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 0% and four boolean toggles exist; the description names all four concepts (alef, yaa, taa-marbuta, hamza carriers), which is real added meaning. However it omits the defaults declared in the schema (yaa and alef default true), and the word "optionally" misleadingly suggests all four are opt-in, so it fails to fully compensate for the coverage gap.

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 (normalize) and resource domain (Arabic text) plus the exact operations performed: diacritic/tatweel stripping and optional letter-group unification. This distinguishes it reasonably from siblings like strip_diacritics, but the description never names or contrasts with that sibling, so differentiation is inferential rather than explicit.

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?

"for search/matching" implies the intended context, but there is no explicit when-to-use vs when-not guidance and no pointer to strip_diacritics for the narrower case. Usage is implied only.

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