Skip to main content
Glama

Nutricity calculators

calculate_egfr

Read-onlyIdempotent

Estimate glomerular filtration rate (eGFR) via the race-free CKD-EPI 2021 creatinine equation, from serum creatinine (mg/dL or µmol/L), age and sex. Returns eGFR in mL/min/1.73m² and the KDIGO GFR category (G1–G5). A screening estimate, not a diagnosis.

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>",
      "unit": "<unit>",
      "age": "<age>",
      "sex": "<sex>"
    },
    "name": "calculate_egfr"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years; adults only (18+), as CKD-EPI 2021 is validated
sexYesBiological sex: M (male) or F (female)
unitYesmg (mg/dL) or umol (µmol/L)
creatinineYesSerum creatinine (mg/dL or µmol/L)

Output Schema

NameRequiredDescriptionDefault
egfrYeseGFR in mL/min/1.73m²
stageYesKDIGO GFR category: G1, G2, G3a, G3b, G4, G5

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only and idempotent safety, so the bar is lower; the description still adds real substance by disclosing the specific equation, the unit ambiguity resolution (mg/dL or µmol/L), the KDIGO category output, and a clinical limitation. It does not state the adult-only validation constraint, which is only in the schema.

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?

Three short sentences: purpose and method first, then output, then the caveat. Every clause carries information (equation name, units, return type, limitation) with no filler.

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?

For a single-equation calculator with annotations and an output schema, the description covers method, inputs, units, and the screening caveat adequately. It leaves the adult-only (18+) restriction to the schema, a minor gap given everything else is covered.

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 coverage is 100%, with enums and descriptions for sex, unit and age already documenting meaning. The description restates the same inputs and unit options without adding format, range, or conversion guidance beyond the schema, 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?

States a specific verb and resource ("Estimate glomerular filtration rate (eGFR)"), names the exact equation (race-free CKD-EPI 2021) and the inputs it consumes. This is unmistakable against siblings like calculate_bmi or calculate_ldl_cholesterol, which measure entirely different quantities.

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 closing line "A screening estimate, not a diagnosis" gives scope context and implies a screening use case, which is genuinely useful. However, it names no alternatives (e.g. cystatin C-based or pediatric equations) and gives no explicit when-not-to-use beyond the vague diagnostic caveat, so guidance is only implied.

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