Skip to main content
Glama
arabic-text-mcp

arabic-text-mcp

convert_digits

Converts text between Western (0-9) and Eastern Arabic-Indic (٠-٩) digits; Persian digits are folded into the selected form.

Instructions

Convert between Western (0-9) and Eastern Arabic-Indic (٠-٩) digits; Persian digits are folded in. to is 'western' or 'eastern'.

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

Input Schema

NameRequiredDescriptionDefault
toNowestern
textYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: Persian digits are 'folded in' rather than rejected, and the accepted direction values are enumerated. It stops short of saying what happens to non-digit characters, mixed-script input, or invalid `to` values, which is the main remaining gap for a pure-function 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?

Two short sentences, front-loaded with the transformation, then the direction parameter. Nothing is redundant or padded.

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 two-parameter pure conversion tool with an output schema (so return values need not be explained), the definition covers direction and script handling well. Only edge-case behavior — pass-through of non-digit characters and error handling for bad inputs — is left unstated.

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%, so the description must compensate. It does fully document `to` by giving its two literal values (the schema only shows a string with default 'western'), but `text` is only implicitly defined as the input to convert — no statement on whether surrounding non-digit content is preserved or what inputs are invalid.

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 — converting digit systems — and names both character sets explicitly (Western 0-9 and Eastern Arabic-Indic ٠-٩). The Persian-folding clause further scopes the operation, so an agent can tell this apart from sibling transliteration/normalization tools 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 Guidelines3/5

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

Usage is only implied: an agent can infer you call this when you need digits in the other numeral system, but there is no explicit when-to-use statement, no mention of prerequisites, and no routing against siblings such as normalize (which might also touch digits). Adequate but leaves the choice to inference.

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