Skip to main content
Glama

nbrain-arabic-deterministic-rag

decode_egypt_14digit_national_id

Read-onlyIdempotent

Decode and verify a 14-digit Egyptian National ID (century, leap-year birthdate, 27 MOI governorates, gender, and weighted Modulo-11 checksum) for Egypt UHIA healthcare & fintech.

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": {
      "national_id": "<national_id>"
    },
    "name": "decode_egypt_14digit_national_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
national_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the read-only, idempotent, closed-world annotations, it discloses concrete deterministic behavior: leap-year birthdate handling, governorate and gender decoding, and weighted Modulo-11 checksum verification. It still leaves malformed-input and failed-checksum behavior unspecified.

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?

The action and resource are front-loaded, and the parenthetical compresses useful behavioral detail into a single sentence without filler. The domain acronyms assume some audience knowledge but keep the definition compact.

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

Completeness3/5

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

The definition is sufficient to identify the tool and supply its sole argument, while the annotations cover its safety profile. With no output schema, however, it should indicate the result shape and how invalid dates, unknown governorate codes, or checksum failures are reported; the precise scope of "verify" also remains potentially ambiguous.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema only identifies national_id as a string, the description supplies its essential semantics and length constraint: a 14-digit Egyptian National ID. This substantially compensates for the 0% schema description coverage, though digits-only normalization, whitespace, and separator handling remain unstated.

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?

The description pairs the specific verbs "Decode and verify" with a precisely scoped resource, a "14-digit Egyptian National ID," and lists the decoded or checked components. Its jurisdiction and ID-type scope also distinguish it from siblings handling Saudi IDs and Egyptian tax RINs.

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

Usage Guidelines4/5

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

The phrase "for Egypt UHIA healthcare & fintech" supplies an explicit domain context for choosing the tool. It does not provide when-not guidance, name an alternative, or clarify that algorithmic verification is not an official registry lookup.

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.