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

nbrain-egypt-uhis-fhir

validate_egypt_uhis_gahar_fhir_bundle

Validates Egypt UHIA/GAHAR HL7 FHIR R4 bundles by checking Patient National ID, critical radiology readback, EDA GTIN-14 checksums, and decimal EGP Claim totals.

Instructions

Validate an Egypt Universal Health Insurance (UHIA/EHA) & GAHAR HL7 FHIR R4 Bundle (Patient National ID, critical radiology readback, EDA GTIN-14, and Decimal EGP Claim totals).

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": {
      "bundle_json": "<bundle_json>"
    },
    "name": "validate_egypt_uhis_gahar_fhir_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
bundle_jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It usefully discloses which validation rules apply, but says nothing about whether validation mutates anything, what a failure looks like (error list vs. exception), or whether the bundle must be a serialized JSON string of an R4 Bundle.

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?

A single front-loaded sentence with no filler. The dense acronym stacking ('UHIA/EHA', 'EDA GTIN-14', 'Decimal EGP') costs a little readability but every clause carries specification content.

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?

With no annotations and no output schema, the definition should explain return/error behavior for a validation tool, since the result shape is the main thing an agent needs. The validated rule set is covered, but response and failure semantics are absent.

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?

One required parameter at 0% schema description coverage, so the description must compensate. The parenthetical list hints at what the bundle must contain, but it never states that bundle_json is a JSON-serialized FHIR R4 Bundle resource nor what the required resource profile is.

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?

States a specific verb ('Validate') plus a specific resource (Egypt UHIA/EHA & GAHAR HL7 FHIR R4 Bundle) and enumerates the rules checked (National ID, radiology readback, GTIN-14, EGP claim totals). That scope distinguishes it from decode_egypt_14digit_national_id and validate_egypt_eda_gtin14, which handle single elements, though the description never says so explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of the sibling validators. An agent is left to infer that this is the whole-bundle check rather than the single-field checks.

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