Skip to main content
Glama

LabSlope

Calculate CKD-EPI 2021 race-free eGFR

calculate_egfr
Read-only

Compute CKD-EPI 2021 race-free estimated GFR (mL/min/1.73m²) from serum creatinine (mg/dL or µmol/L), age, sex ("male", "female", or "unspecified" returning both female & male estimates), and optional Cystatin C (mg/L).

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": {
      "creatinine": "<creatinine>",
      "creatinineUnit": "<creatinineUnit>",
      "ageYears": "<ageYears>",
      "sex": "<sex>"
    },
    "name": "calculate_egfr"
  }
}

Input Schema

NameRequiredDescriptionDefault
sexYesBiological sex used in CKD-EPI coefficient ("male", "female", or "unspecified" to return both reference estimates).
ageYearsYesAdult age in years (18–120).
creatinineYesSerum Creatinine numeric value (> 0).
cystatinCMgLNoOptional Cystatin C value in mg/L (to also compute combined eGFRcr-cys).
creatinineUnitYesCreatinine unit: "mg/dL" or "µmol/L" / "umol/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 this a safe, closed-world read calculation, and the description adds meaningful context beyond them: the exact equation version (race-free 2021), accepted creatinine units, and the non-obvious behavior that sex="unspecified" returns both female and male reference estimates. It stops short of describing error behavior for out-of-range age or non-positive values, which keeps it from a 5.

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 dense sentence that front-loads the formula and output unit before the parenthetical parameter list, with no filler. The nesting of parentheticals makes it slightly harder to scan than an ideal bulleted breakdown.

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?

With no output schema, the description does supply the return unit and the dual-estimate behavior for unspecified sex, which is the key completeness need. It omits what happens when cystatin C is supplied (that a separate combined eGFRcr-cys value is also returned) and any failure conditions.

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%, so the schema already documents each parameter including enum values and ranges; the description largely restates those same semantics. It adds nothing about unit-conversion assumptions or how cystatin C changes the result, so baseline 3 applies.

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 a specific verb and resource (compute CKD-EPI 2021 race-free eGFR), states the output unit (mL/min/1.73m²), and enumerates every input, so it is unambiguously distinct from the other calculate_* siblings.

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 by the formula being named, but there is no explicit statement of when to prefer this over alternatives such as convert_lab_unit for unit-only conversions, nor any stated exclusions (e.g. pediatric patients).

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.