Skip to main content
Glama
nbrain-egypt-uhis-fhir

nbrain-egypt-uhis-fhir

decode_egypt_14digit_national_id

Decode and validate a 14-digit Egyptian National ID to extract birthdate, governorate, and gender, and verify its Modulo-11 check digit.

Instructions

Decode and validate a 14-digit Egyptian National ID (century, leap-year birthdate, 27 MOI governorates, gender, and weighted Modulo-11 check digit).

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
strict_checksumNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the validation logic (century rules, leap-year handling, governorate table, weighted Modulo-11 checksum), which is real behavioral value. However, it never states what happens on an invalid ID (error versus a result object with a validity flag) or whether validation is side-effect free.

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?

A single front-loaded sentence with every clause carrying information; no filler or restatement of the tool name.

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?

No output schema exists, and the parenthetical list of decoded fields partially serves as a return-value contract, which is helpful. Missing are the response shape, failure behavior, and any explanation of the one undocumented parameter, leaving clear gaps for a validation tool with no annotations.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It adds the crucial '14-digit' format constraint for national_id, but the strict_checksum boolean is never mentioned at all — an agent cannot tell from the definition what disabling it does or when to use it.

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?

Uses a specific verb pair (decode, validate) on a precisely named resource and enumerates exactly what gets extracted: century, leap-year birthdate, MOI governorate, gender, and Modulo-11 check digit. This is unambiguous against the sibling tools, which deal with GTIN-14 and FHIR bundles rather than national IDs.

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 purpose strongly implies when to call it, but there is no explicit statement of when to prefer this tool over the sibling validators or any prerequisite on input format. Usage is only inferable from the tool name and subject matter.

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