Skip to main content
Glama

TradeCheck MCP — UK & Global Trade Compliance Engine

validate_fhir_ukcore

Read-onlyIdempotent

[validate | $0.06/call] Deterministic HL7 FHIR R4 and NHS England UK Core validator checking Mod-11 NHS Numbers, ODS codes, SDS/GMC/NMC practitioner identifiers, and SNOMED CT/dm+d codings.

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": {
      "resource": "<resource>",
      "profile": "<profile>"
    },
    "name": "validate_fhir_ukcore"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileYesTarget NHS England UK Core or base FHIR R4 profile to enforce ('UKCore-Patient', 'UKCore-Organization', 'UKCore-Practitioner', or 'FHIR-R4-Base').UKCore-Patient
resourceYesParsed HL7 FHIR R4 resource JSON object (e.g. Patient, Organization, or Practitioner) to validate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds one genuinely new trait — 'deterministic' — but says nothing about what the call returns (issue list, severities, pass/fail shape) or how failures are surfaced, which matters since there is no output schema.

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 the verb and cost marker first and the check domains after; no filler. The bracketed price is compact and relevant to tool selection, though the sentence is dense enough that the enumerated checks are hard to scan.

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 tool is a fairly simple two-parameter validator with full schema coverage and clear annotations, so the description covers the essentials. However, with no output schema, the agent is left without knowing what a validation response looks like or whether issues are reported with severity and paths, which is a notable gap for a validator.

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% and both parameters are documented in the schema, including the profile enum with a default, so the baseline of 3 applies. The description's list of checked code systems indirectly tells the agent what the 'resource' payload should contain but adds no syntax or format detail beyond the schema.

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) and precise resource domain (HL7 FHIR R4 and NHS England UK Core), and enumerates the concrete check families: Mod-11 NHS Numbers, ODS codes, SDS/GMC/NMC identifiers, SNOMED CT/dm+d codings. An agent can tell exactly what it does. It does not explicitly distinguish itself from the similarly named sibling validate_openapi_31, so it stops short of a 5.

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?

Usage is implied: 'deterministic ... validator' signals a pure rule-check pass rather than an LLM-judged review, and the profile list hints at the supported targets. There is no explicit statement of when to use this versus another validation or compliance tool, and no preconditions or failure-mode guidance.

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.