Skip to main content
Glama

Nutricity calculators

calculate_non_hdl_cholesterol

Read-onlyIdempotent

Calculate non-HDL cholesterol (total − HDL) and the atherogenic ratios TC/HDL, LDL/HDL and TG/HDL. LDL and triglycerides are optional and enable their respective ratios.

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": {
      "total": "<total>",
      "hdl": "<hdl>"
    },
    "name": "calculate_non_hdl_cholesterol"
  }
}

Input Schema

NameRequiredDescriptionDefault
hdlYesHDL cholesterol in mg/dl
ldlNoLDL cholesterol in mg/dl (optional, enables the LDL/HDL ratio)
totalYesTotal cholesterol in mg/dl
triglyceridesNoTriglycerides in mg/dl (optional, enables the TG/HDL ratio)

Output Schema

NameRequiredDescriptionDefault
nonHdlYesNon-HDL cholesterol (total − HDL)
tcHdlRatioYesTotal cholesterol / HDL ratio
tgHdlRatioYesTriglycerides / HDL ratio (null if no triglycerides)
ldlHdlRatioYesLDL / HDL ratio (null if no LDL)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description need not restate safety. It adds genuine behavioral context by disclosing that the returned ratios are conditional on which optional inputs are supplied, which the annotations do not convey. No mention of edge cases (e.g., HDL approaching zero) or unit conventions beyond 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?

Two short sentences, front-loaded with the core computation and formula, followed by the optional-input condition. No filler or redundancy.

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 a full output schema and fully documented parameters, the description supplies what remains: the underlying formulas and the conditional nature of the derived ratios. Only minor gaps remain, such as handling of degenerate inputs or unit expectations.

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%, and the schema already labels LDL and triglycerides as optional and tied to the LDL/HDL and TG/HDL ratios, so the description's parameter sentence largely restates the schema. Baseline 3 applies since the schema does the heavy lifting.

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 names a specific verb and resource ('Calculate non-HDL cholesterol') and spells out the exact formulas (total − HDL, TC/HDL, LDL/HDL, TG/HDL), so an agent knows precisely what is computed. It does not explicitly contrast itself with neighbors such as calculate_ldl_cholesterol, leaving sibling differentiation to inference.

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?

Useful guidance is present for the optional inputs: supplying LDL or triglycerides 'enables their respective ratios,' which tells the agent how to obtain the full output set. There is no explicit when-to-use versus alternatives (e.g., when to compute non-HDL versus standalone LDL) or any exclusions.

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