Skip to main content
Glama
nbrain-clinical-mena-mcp

nbrain-clinical-mena-mcp

Official

convert_loinc_lab_unit

Converts LOINC clinical lab values between Egypt conventional (mg/dL) and GCC/SI (mmol/L, umol/L) units for 23 analytes.

Instructions

Exact stoichiometric Decimal unit conversion between Egypt conventional (mg/dL) and GCC/SI (mmol/L, umol/L) across 23 LOINC clinical analytes.

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": {
      "code_or_key": "<code_or_key>",
      "value": "<value>"
    },
    "name": "convert_loinc_lab_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
to_systemNo
code_or_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose one useful trait — conversion is 'Exact stoichiometric Decimal', implying no rounding loss — but it says nothing about failure behavior for unsupported codes, precision or rounding of the result, the hard 23-analyte limit, or how errors surface.

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 wasted words; the parenthetical unit pairs and analyte count are dense but earn their place. It is efficient, though the density of jargon makes it slightly harder to scan than a structured breakdown would be.

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

Completeness2/5

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

For a 3-parameter tool with zero schema coverage, no annotations, and no output schema, the description covers only the domain and never the inputs' formats, accepted value range, or result shape. An agent can grasp the intent but must guess at the call contract.

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 explain all three parameters. It clarifies the unit systems (mg/dL vs mmol/L, umol/L) that map to the to_system enum 'SI'/'CONV', but code_or_key is never explained (LOINC code vs internal key, expected format) and value is left undefined despite being typed as a string.

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 and resource: 'unit conversion between Egypt conventional (mg/dL) and GCC/SI (mmol/L, umol/L)' with the domain scoped to '23 LOINC clinical analytes'. The purpose is unmistakable and clearly distinct from siblings like convert_egyptian_cadastre_fqs or convert_hl7_oru_to_fhir_r4, though it never explicitly names an alternative.

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?

No when-to-use, when-not-to-use, or prerequisite guidance. The direction of conversion is only implied by the domain pairing in parentheses, and nothing tells the agent when this tool is inappropriate (e.g. non-LOINC analytes, non-listed unit pairs, or values outside the 23 supported analytes).

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