Skip to main content
Glama
arabic-text-mcp

arabic-text-mcp

script_stats

Counts Arabic and Latin letters, diacritics, and words in text, and calculates the Arabic-to-all-letters ratio to help analyze script composition.

Instructions

Count Arabic/Latin letters, diacritics and words; arabic_ratio is Arabic letters over all letters.

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

Input Schema

NameRequiredDescriptionDefault
textYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does add real behavioral value by defining how arabic_ratio is computed (Arabic letters over all letters). However, it stays silent on tokenization assumptions (are words whitespace-split? do digits or punctuation count as letters?) and on whether diacritics are included in the letter totals or reported separately — gaps that could change how an agent interprets results.

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?

One sentence, front-loaded with the primary action, with the metric definition appended after a semicolon. Every clause carries information; there is no filler.

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 one-parameter, read-only counting tool with an output schema that documents the returned fields, the description covers the essentials: what is counted and how the ratio is defined. The remaining gap (tokenization/counting edge cases) is minor at this complexity level.

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% for the single `text` parameter, so the description must compensate. It implicitly establishes that the input is the text being analyzed, but adds no constraint guidance such as accepted scripts, length limits, or whether mixed-script input is handled. The single obviously-named parameter keeps this from being a serious deficiency.

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 uses a specific verb ("Count") with enumerated resources — Arabic/Latin letters, diacritics, words — and even defines the derived metric arabic_ratio. It is clear what the tool produces, but it never contrasts itself with siblings like normalize or strip_diacritics, leaving the agent to infer that this is the analytical (non-transforming) member of the family.

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 when-to-use or when-not-to-use statement, no mention of the sibling tools, and no stated precondition (e.g. that text should be normalized first). The agent must infer usage purely from the tool name and the counting semantics.

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