Skip to main content
Glama

LabSlope

Calculate Non-HDL, TG/HDL, TyG & ApoB/ApoA1 ratios

calculate_lipid_ratios
Read-only

Normalize lipid panels to US mg/dL and compute Non-HDL-C, Total/HDL (Castelli I), LDL/HDL, TG/HDL ratio, Remnant Cholesterol, ApoB/ApoA1 ratio, and optional TyG index.

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": {
      "tc": "<tc>",
      "hdl": "<hdl>",
      "lipidUnit": "<lipidUnit>"
    },
    "name": "calculate_lipid_ratios"
  }
}

Input Schema

NameRequiredDescriptionDefault
tcYesTotal Cholesterol numeric value (> 0).
tgNoOptional Triglycerides value in the same lipidUnit (needed for TG/HDL and TyG).
hdlYesHDL Cholesterol numeric value (> 0, <= Total Cholesterol).
ldlNoOptional LDL Cholesterol value in the same lipidUnit.
apobNoOptional Apolipoprotein B (ApoB) value.
apoa1NoOptional Apolipoprotein A1 (ApoA1) value in the same apoUnit as ApoB.
apoUnitNoUnit for ApoB and ApoA1: "mg/dL" or "g/L" (defaults to "mg/dL").
glucoseNoOptional fasting glucose value (paired with tg to compute the TyG index).
lipidUnitYesUnit for TC, HDL, LDL, and Triglycerides: "mg/dL" or "mmol/L".
glucoseUnitNoUnit for optional glucose: "mg/dL" or "mmol/L" (defaults to "mg/dL").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/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 one genuinely useful behavioral fact beyond that: inputs are accepted in either unit system but results are normalized to US mg/dL, and TyG is conditional ('optional'). It does not disclose what happens to ratio outputs when tg/apob/apoa1 are omitted, nor how input constraint violations (e.g., HDL > TC) are reported.

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 front-loaded sentence where the normalization step and each computed metric earn their place by telling the agent what output to expect. No filler, no restatement of the title, no redundant parameter prose.

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?

With 10 parameters and no output schema, the enumeration of computed metrics does heavy lifting as a de facto output inventory, which is valuable. However, it omits return structure, output units for the ratios, and the degradation behavior when optional inputs are absent, leaving real gaps for a calculator of this breadth.

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 enums on all three unit fields, so the schema already carries the parameter burden and a baseline of 3 applies. The description contributes only marginally, hinting that TyG is conditional and that ratios depend on specific input pairs, but adding no format, default, or cross-field detail beyond the schema.

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?

The description pairs a specific verb ('Normalize ... and compute') with a specific resource (lipid panel ratios) and enumerates the exact metrics produced (Non-HDL-C, Castelli I, LDL/HDL, TG/HDL, Remnant Cholesterol, ApoB/ApoA1, TyG). That makes it unmistakable against lipid-unrelated siblings like calculate_egfr or calculate_phenoage, but it never explicitly names an alternative calculator or conversion tool, so sibling routing is left implicit.

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?

There is no when-to-use/when-not guidance and no mention of prerequisites or alternatives such as convert_lab_unit for pure unit conversion or analyze_lab_trends for longitudinal work. The agent must infer from the name alone that this is the aggregate lipid-ratio calculator rather than a single-purpose one.

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.