Skip to main content
Glama

Qalam — Arabic Handwriting

Animate Arabic handwriting

render_arabic_handwriting
Read-onlyIdempotent

Animates Arabic text as handwriting: in a widget, a blue ballpoint pen writes it stroke by stroke, with pause and replay and a PNG or animated GIF download, framed as the original or vertical 9:16 (for a story or reel), on paper or a transparent background. Use when the user wants Arabic words or a short phrase handwritten, animated, written by a pen, or saved as a handwriting image or GIF. The text must be in Arabic script, up to 120 characters. The pen writes Arabic letters, Arabic and Western digits, and ، ؛ ؟ ! . : ( ); vowel marks (harakat) are left out and the result says so; any other character is refused rather than dropped. Do not change or translate the user's Arabic wording. If the user gives a name in Latin letters, first call write_name_in_arabic and pass its Arabic spelling here. The handwriting is drawn on the user's device in the widget; the result returns the checked text and, for clients without widgets, a link to the handwriting tool. Keep the reply short and do not reproduce the handwriting in text.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe Arabic text to write, exactly as the user wants it (e.g. 'السلام عليكم'). Up to 120 characters once vowel marks are removed.
formatNo'vertical' for a 9:16 story, reel or phone wallpaper; otherwise 'original'.
languageNoLanguage of the widget and messages: 'fr' when the user writes in French, otherwise 'en'.
backgroundNo'transparent' when the user wants to overlay the writing on a picture or video; otherwise 'paper'.

Output Schema

NameRequiredDescriptionDefault
langYes
textYes
notesYes
wordsYes
formatYes
statusYes
toolUrlYes
backgroundYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description correctly spends its budget on behavior the annotations cannot express: harakat are silently dropped and the result discloses this, any other unsupported character is refused rather than dropped, and rendering happens on the user's device with a link fallback for clients without widgets. It also states the 120-character effective limit and the no-translation constraint, which materially change how an agent should prepare input.

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?

Front-loaded with what the tool produces, then usage triggers, then input constraints, then the sibling handoff, then output behavior — a sensible ordering with no filler sentences. It runs long and the closing instruction ('Keep the reply short and do not reproduce the handwriting in text') is agent-response coaching rather than tool behavior, which slightly dilutes the definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the description still flags the return contract an agent most needs ('returns the checked text and, for clients without widgets, a link'). Combined with the character rules, refusal policy, and sibling handoff, nothing required to invoke this tool correctly is missing.

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 the schema already documents text, format, language and background, including the 'vertical' 9:16 and 'transparent' overlay semantics. The description adds the 120-character practical cap and the framing intent, but never mentions the `language` parameter and largely restates enum guidance already in the schema. Baseline 3 is the right level.

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?

Opens with a specific verb and resource ('Animates Arabic text as handwriting') and immediately enumerates the concrete outputs: widget animation, stroke-by-stroke pen, PNG or animated GIF, original vs vertical framing, paper vs transparent background. This is enough for an agent to tell it apart from write_name_in_arabic, which is also named explicitly later.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit trigger language ('Use when the user wants Arabic words or a short phrase handwritten, animated, written by a pen, or saved as a handwriting image or GIF') and an explicit routing rule to the sibling: 'If the user gives a name in Latin letters, first call write_name_in_arabic and pass its Arabic spelling here.' Both the when-to-use and the alternative are stated, not inferred.

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