Skip to main content
Glama

LabSlope

Convert blood biomarker unit (US <-> SI)

convert_lab_unit
Read-only

Convert a blood biomarker measurement between US conventional and international SI units using analyte-specific molecular weights (including bidirectional HbA1c % <-> mmol/mol and Chinese/English aliases).

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": {
      "marker": "<marker>",
      "value": "<value>",
      "fromUnit": "<fromUnit>",
      "toSystem": "<toSystem>"
    },
    "name": "convert_lab_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesMeasured biomarker numeric value (> 0).
markerYesBiomarker name, ID, or Chinese/English alias (e.g. "apob", "glucose", "creatinine", "hba1c", "载脂蛋白B", "肌酐").
fromUnitYesSource unit string (e.g. "mg/dL", "mmol/L", "umol/L", "g/L", "%", "mmol/mol").
toSystemYesTarget unit system: "us" (conventional US units) or "si" (international SI units).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 genuine behavioral context — conversion relies on per-analyte molecular weights, works bidirectionally, resolves aliases — but says nothing about failure behavior for unknown markers or mismatched units, nor what the caller receives back.

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?

One dense, front-loaded sentence with the core action first and qualifying details parenthesized. No filler, no restatement of the name or title.

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 100% schema coverage and read-only annotations, the description covers the essential mechanics for a simple 4-parameter converter. The main residual gap is the absence of any output description (there is no output schema) and no statement on error handling for unsupported analytes or units.

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%, so the baseline is 3, and the description's mention of molecular weights and aliases reinforces why `marker` accepts names/IDs/Chinese aliases. However, it does not explain the asymmetry between `fromUnit` (a specific unit string) and `toSystem` (only a system enum), leaving unclear how the exact target unit is derived or what happens when the source unit is incompatible with the target system.

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?

"Convert a blood biomarker measurement between US conventional and international SI units" is a specific verb plus resource, and the parenthetical narrows scope to analyte-specific molecular weights plus HbA1c and Chinese/English aliases. It is distinguishable from the calculate_* siblings by being a unit conversion rather than a clinical calculation, though it never names those alternatives.

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?

Usage is only implied: an agent can infer this is for unit conversion of lab biomarkers, and the HbA1c and alias notes hint at supported inputs. There is no explicit when-to-use vs. when-not guidance, no statement about unsupported analyte/unit pairs, and no pointer to a sibling for related needs such as reference ranges or trends.

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.