Skip to main content
Glama

nbrain-mena-iban-swift-mt940

validate_saudi_national_id_iqama

Read-onlyIdempotent

Validate a 10-digit Saudi National ID (1...) or Resident Iqama (2...) via Modulo-10 Luhn checksum for NPHIES healthcare claims.

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": {
      "identifier": "<identifier>"
    },
    "name": "validate_saudi_national_id_iqama"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior. The description adds the actual validation mechanism (Modulo-10 Luhn checksum) and accepted input prefixes/length, which are useful behavioral details not covered by annotations. It stops short of describing invalid-input handling or return format.

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 description is a single front-loaded sentence with no filler. Every clause (length, prefixes, checksum method, and NPHIES domain) contributes to correct 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?

For a low-complexity read-only validator with rich annotations, the description covers purpose, input format, algorithm, and domain. The main omission is return or error behavior, which is not critical for selecting the tool but would help an agent interpret results.

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?

With one required parameter and 0% schema description coverage, the description compensates by specifying that the value must be a 10-digit identifier beginning with 1 for National ID or 2 for Iqama. That adds meaningful format semantics beyond the bare string type, though it could clarify whether separators or spaces are accepted.

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 names the exact verb (Validate), both precise resource types (Saudi National ID and Resident Iqama) with their 10-digit prefixes, the checksum method, and the NPHIES domain. This clearly distinguishes it from sibling validators by jurisdiction and document type.

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 NPHIES healthcare claims' gives clear domain context for when to use the tool. It does not explicitly list when-not conditions or name alternative validators, but the country-and-document scope is specific enough for an agent to choose it over the sibling validators.

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.