Skip to main content
Glama

LabSlope

Calculate Levine PhenoAge biological age

calculate_phenoage
Read-only

Compute Levine et al. (2018) Phenotypic Age, age delta (years vs chronological age), and 10-year mortality score from chronological age plus 9 routine blood markers across US and SI units.

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": {
      "ageYears": "<ageYears>",
      "albumin": "<albumin>",
      "albuminUnit": "<albuminUnit>",
      "creatinine": "<creatinine>",
      "creatinineUnit": "<creatinineUnit>",
      "glucose": "<glucose>",
      "glucoseUnit": "<glucoseUnit>",
      "crp": "<crp>",
      "crpUnit": "<crpUnit>",
      "lymphPct": "<lymphPct>",
      "mcv": "<mcv>",
      "rdw": "<rdw>",
      "alp": "<alp>",
      "wbc": "<wbc>"
    },
    "name": "calculate_phenoage"
  }
}

Input Schema

NameRequiredDescriptionDefault
alpYesAlkaline Phosphatase (ALP in U/L, e.g. 64).
crpYesC-Reactive Protein (hs-CRP or CRP) value (> 0).
mcvYesMean Corpuscular Volume (MCV in fL, e.g. 89).
rdwYesRed Cell Distribution Width (RDW-CV in %, e.g. 12.6).
wbcYesWhite Blood Cell count (WBC in 10^3/µL or 10^9/L, e.g. 5.6).
albuminYesSerum Albumin value.
crpUnitYesCRP unit: "mg/L" (standard US/SI) or "mg/dL".
glucoseYesFasting serum Glucose value.
ageYearsYesChronological age in years (18–120).
lymphPctYesLymphocyte percentage (% of WBC, e.g. 32).
creatinineYesSerum Creatinine value.
albuminUnitYesAlbumin unit: "g/dL" (US) or "g/L" (SI).
glucoseUnitYesGlucose unit: "mg/dL" (US) or "mmol/L" (SI).
creatinineUnitYesCreatinine unit: "mg/dL" (US) or "µmol/L" / "umol/L" (SI).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuine context beyond that: it discloses the three returned values and that US and SI units are both handled, though it says nothing about validation failures or out-of-range handling for the 14 required inputs.

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?

A single dense sentence with no waste, front-loaded on the verb and formula and ending with the input/unit scope. Every clause carries information an agent needs.

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

Completeness5/5

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

For a deterministic, side-effect-free computation with no output schema, the description supplies what is most needed: the named outputs so the agent knows what comes back, and the input scope including dual unit systems. Nothing essential for correct invocation is missing.

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 every parameter, range, and unit enum documented in the schema, so the baseline is 3. The description's mention of 'across US and SI units' reinforces that each measurement pairs with a unit field, but it adds no syntax or constraint detail beyond what the schema already provides.

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 (compute), the exact resource (Levine et al. 2018 Phenotypic Age), and enumerates the three outputs: PhenoAge, age delta, and 10-year mortality score. It also distinguishes itself from siblings like calculate_egfr and calculate_homa_ir by naming the PhenoAge formula and its distinct input set.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the applicability clear by stating the required inputs (chronological age plus 9 routine blood markers), which implicitly tells an agent when this tool fits versus other calculators. It gives no explicit exclusions or sibling routing, but the formula-specific framing leaves little ambiguity.

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.