Skip to main content
Glama

LabSlope

Calculate HOMA-IR & QUICKI insulin sensitivity

calculate_homa_ir
Read-only

Compute HOMA-IR insulin resistance and QUICKI sensitivity index from fasting glucose and fasting insulin across US (mg/dL, µU/mL) and SI (mmol/L, pmol/L) 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": {
      "glucose": "<glucose>",
      "glucoseUnit": "<glucoseUnit>",
      "insulin": "<insulin>",
      "insulinUnit": "<insulinUnit>"
    },
    "name": "calculate_homa_ir"
  }
}

Input Schema

NameRequiredDescriptionDefault
glucoseYesFasting glucose numeric value (> 0).
insulinYesFasting insulin numeric value (> 0).
glucoseUnitYesFasting glucose unit: "mg/dL" or "mmol/L".
insulinUnitYesFasting insulin unit: "µU/mL" (or "uU/mL") or "pmol/L".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare this is a safe, closed-domain read (readOnlyHint=true, openWorldHint=false). The description adds value by disclosing that both US and SI unit systems are handled, but it does not state the shape of the returned HOMA-IR/QUICKI values, and no output schema exists to cover that gap.

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 well-formed sentence that front-loads the computed indices and the required inputs with zero 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 simple, fully-parameterized pure computation with read-only annotations and all four params documented, the definition is nearly complete. The only shortfall is the absence of any indication of return format, which is unchecked by an 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 description coverage is 100% with both unit parameters enumerated and documented, so the baseline is 3. The description reinforces the unit-system mapping but adds no constraints or format details beyond the schema.

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?

Specific verb 'Compute' with two named outputs (HOMA-IR and QUICKI) and named inputs (fasting glucose and insulin). The unit-system scoping further distinguishes it from generic siblings like convert_lab_unit or get_optimal_ranges.

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 phrase 'from fasting glucose and fasting insulin' implies the prerequisite (fasting samples) and the inputs needed, but there is no explicit when-to-use guidance, no exclusions, and no routing to alternatives such as list_calculators or get_optimal_ranges.

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.