Skip to main content
Glama

api_medical_anion_gap

Read-onlyIdempotent

Calculate uncorrected serum anion gap Na−(Cl+HCO3) from same-sample laboratory values. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "sodium_mmol_l": "<sodium_mmol_l>",
      "chloride_mmol_l": "<chloride_mmol_l>",
      "bicarbonate_mmol_l": "<bicarbonate_mmol_l>"
    },
    "name": "api_medical_anion_gap"
  }
}

Input Schema

NameRequiredDescriptionDefault
sodium_mmol_lYesSerum sodium mmol/L
chloride_mmol_lYesSerum chloride mmol/L
bicarbonate_mmol_lYesSerum bicarbonate mmol/L

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 openWorld, so the safety profile needs no repetition. The description adds genuinely new operational context: a 0.01 USDC cost on Base x402 and an X-Provider-Key header for customer-owned credentials, both of which affect whether and how an agent invokes it.

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?

Two tight sentences: the computation and its input constraint come first, the cost and auth mechanics second. No filler, no redundancy, and the most decision-relevant information is front-loaded.

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?

There is no output schema, and the description never says what comes back — the gap value, its units (mmol/L), or any typical reference range for interpreting normality. For a simple read-only calculator with full schema coverage that is a modest but real gap; cost and auth are the only extras supplied.

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% with all three parameters documented in mmol/L, so the schema carries the burden and baseline 3 applies. The description adds only the 'same-sample' constraint and the implied units consistency, no per-parameter clarification beyond the schema.

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?

States a specific verb ('calculate'), a precisely named resource ('uncorrected serum anion gap'), and even spells out the formula Na−(Cl+HCO3), which pins down the exact computation. The 'uncorrected' qualifier preempts confusion with corrected/albumin-adjusted variants, so an agent can distinguish it from other medical calculator siblings without opening the schema.

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 phrase 'from same-sample laboratory values' conveys an important validity precondition, implying the three inputs must come from a single draw. However, it never states when an agent should prefer this over related tools (e.g., serum osmolality or corrected calcium) or what to do if values are from different samples.

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.

Resources