Skip to main content
Glama

Nutricity calculators

calculate_hba1c_eag

Read-onlyIdempotent

Convert between HbA1c (DCCT %), HbA1c (IFCC mmol/mol), and estimated average glucose (eAG) in mg/dL and mmol/L. Give the value and say which one it is (inputType); returns all four. Uses the ADAG regression (eAG = 28.7×A1c − 46.7) and the NGSP/IFCC master equation.

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": {
      "value": "<value>",
      "inputType": "<inputType>"
    },
    "name": "calculate_hba1c_eag"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe value to convert
inputTypeYesWhat `value` represents: hba1c-percent (DCCT %), hba1c-mmol (IFCC mmol/mol), eag-mg (mg/dL) or eag-mmol (mmol/L)

Output Schema

NameRequiredDescriptionDefault
eagMgDlYesEstimated average glucose in mg/dL
eagMmolYesEstimated average glucose in mmol/L
hba1cMmolYesHbA1c in IFCC mmol/mol
hba1cPercentYesHbA1c in DCCT/NGSP percent

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 establish readOnly and idempotent, so the safety profile is covered. The description goes further by disclosing the exact regression equations used (ADAG eAG = 28.7×A1c − 46.7 and the NGSP/IFCC master equation) and that output is always all four representations, which tells an agent the conversion direction is irrelevant.

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 tight sentences: purpose first, then required input contract, then output behavior and the underlying formulas. No redundant or filler wording; each sentence adds information.

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?

With only two fully documented parameters, an output schema present, and read-only annotations, everything an agent needs to invoke this correctly is present. The description's brief note that all four forms are returned complements rather than duplicates the output schema.

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 the inputType enum already enumerating and explaining all four accepted tokens. The description's phrasing 'give the value and say which one it is (inputType)' restates the schema rather than adding new constraints or edge-case guidance, so the baseline of 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?

Names a specific verb (convert) plus three concrete resources (HbA1c DCCT %, HbA1c IFCC mmol/mol, eAG mg/dL and mmol/L), and the bidirectional framing makes the operation unambiguous. This is clearly distinguishable from generic unit-conversion siblings like calculate_lab_unit_conversion.

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 gives clear operating instructions: supply a value, declare which quantity it represents via inputType, and the tool returns all four equivalents. It does not name any alternative tool or state when not to use it, which is the only gap.

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