Skip to main content
Glama

Arabic text tools

text_arabic
Read-onlyIdempotent

Clean and normalize Arabic text: remove tashkeel/tatweel, normalize letters, convert digits and punctuation. Convert Arabizi/Franco-Arabic chat into Arabic script.

Instructions

Arabic text utilities. mode "clean": remove tashkeel (harakat and Quranic marks, optionally keeping shadda), remove tatweel (kashida), normalise letters (alef with hamza/madda/wasla → bare alef; alef maqsura and Farsi ya → ya; ta marbuta → ha; hamza on waw/ya → waw/ya), switch Latin , ; ? to Arabic punctuation, and convert digits (Arabic-Indic ↔ Western). mode "arabizi": turn Arabizi / Franco-Arabic chat text (mar7aba, 3arabi, 5ala9, el bait) into Arabic script. Returns the result with letter/word/character counts. Give "text" or a text file "path". Web version: https://s3eidat.github.io/arabic-tools/

Input Schema

NameRequiredDescriptionDefault
modeNo"clean" = clean & normalise Arabic text (default); "arabizi" = Arabizi (Latin letters + numbers) → Arabic script.clean
pathNoOr: a path to a UTF-8 text file.
textNoThe text to transform.
digitsNoclean: keep digits, convert Arabic-Indic/Persian digits to 0-9 ("western"), or 0-9 to Arabic-Indic ("arabic").keep
outputNoOptional: write the result to this file path (or folder ending in "/") instead of returning it.
keepShaddaNoclean: when removing tashkeel, keep the shadda.
normalizeYaNoclean: alef maqsura and Farsi ya → Arabic ya.
normalizeAlefNoclean: alef with hamza above/below, madda or wasla → bare alef.
removeTatweelNoclean: remove tatweel / kashida (default true).
taMarbutaToHaNoclean: ta marbuta → ha.
normalizeHamzaNoclean: hamza on waw → waw, hamza on ya → ya.
removeTashkeelNoclean: remove tashkeel / harakat (default true).
arabicPunctuationNoclean: Latin comma, semicolon and question mark → Arabic ones.

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?

Annotations already cover read-only, idempotent, and closed-world behavior, and the description adds useful operational context: it lists the transformations, says it returns letter/word/character counts, and notes that results can be written to an output path. It does not discuss limits or failure cases, but the safety profile is sufficiently covered by annotations.

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 description is front-loaded with purpose and mode definitions, and the dense operational detail is justified by the two-mode, 13-parameter tool. It could be more scannable with structured formatting, and the trailing web-version note is not essential to invocation.

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?

Given 13 optional parameters, full schema description coverage, and no output schema, the description is largely complete: it covers both modes, input methods, return counts, and output-file behavior indirectly. Minor gaps remain around parameter interactions and edge cases, but the schema handles those details.

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 100%, so all 13 parameters are already documented in the schema. The description adds some mode-level context and names several transformations, but it largely repeats schema content and does not add syntax or interaction details beyond the structured fields.

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 names a specific resource, Arabic text, and enumerates concrete transformations for both the "clean" and "arabizi" modes. It clearly distinguishes the two modes from each other, though it does not explicitly contrast the tool with siblings such as text_clean.

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?

The description explains what each mode does and that the caller should provide "text" or a file "path", which implies when each mode is appropriate. However, it gives no explicit when-to-use guidance, exclusions, or alternatives such as text_clean for non-Arabic cleanup.

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

Deploy Server

Other Tools