Skip to main content
Glama

Text & Number Toolkit

Convert digit systems

convert_digits
Read-onlyIdempotent

Rewrite digits between Western (0-9), Arabic-Indic (٠-٩) and Persian/Urdu (۰-۹) anywhere in a text, leaving everything else untouched. Response: result plus data_confidence, estimated_items[], sources[], data_version, warnings[]; deterministic (no AI inside), nothing logged.

Input Schema

NameRequiredDescriptionDefault
toYeswestern 0-9 | arabic_indic ٠-٩ | persian ۰-۹.
textYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/closed-world, and the description adds genuinely new behavioral facts: deterministic processing with no AI inside and no logging. The response field list is somewhat redundant given an output schema exists, but the determinism and logging guarantees are real added value.

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 behavioral core (what converts, what stays untouched) is front-loaded in the first sentence, and the second carries guarantees and return shape. The inline list of response fields is a bit dense and largely duplicated by the output schema, slightly diluting efficiency.

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, read-only transformation with an output schema and full annotations, the description covers purpose, scope, determinism, and privacy. The only gap is the absence of explicit guidance on when to pick this over sibling normalization/formatting tools.

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 only 50% — the 'to' enum is documented in the schema but 'text' has an empty description. The description partially compensates by making clear that the entire text is scanned and non-digit characters are preserved, which is the key semantic an agent needs, but it adds nothing about the 'to' values beyond the schema's enum.

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 (rewrite) and resource (digits) with the exact three numeral systems named, plus the scope qualifier 'anywhere in a text, leaving everything else untouched.' An agent can distinguish it from format_number or normalize_arabic by intent, though no sibling is named explicitly.

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 implied by 'anywhere in a text,' which suggests whole-string conversion rather than formatting a single number, but there is no explicit when-to-use versus normalize_arabic, format_number, or transliterate, and no stated preconditions. The agent must infer the routing decision from sibling names alone.

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