Skip to main content
Glama

IronLog — Дневник тренировок и 7 калькуляторов

convert_lab_units

Read-onlyIdempotent

Перевести значение лабораторного анализа между единицами измерения (глюкоза ммоль/л ↔ мг/дл, гемоглобин г/л ↔ г/дл, креатинин мкмоль/л ↔ мг/дл, холестерин, витамин D, ферритин, HbA1c, АЛТ/АСТ/КФК и др.).

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>"
    },
    "name": "convert_lab_units"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesЧисловое значение из бланка
markerYesКод или название показателя (например: GLU, HGB, CREA, VITD, CHOL, TG, FERRITIN, HBA1C, глюкоза, креатинин)
fromUnitYesИсходная единица (например: ммоль/л, мг/дл, г/л, мкмоль/л, нг/мл)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already cover safety entirely (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description's added burden is light. It usefully discloses the supported scope of markers and unit pairs, but says nothing about rounding/precision, how an unsupported marker or unit is handled, or whether both converted and original values are returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that states the action first and then supplies examples. The long parenthetical list is dense but every item earns its place by widening the recognized marker set; only the trailing 'и др.' is vague.

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 stateless pure-function conversion tool with 100% schema coverage and full annotations, the description covers purpose and supported scope adequately. The gaps are precision/rounding behavior and the shape of the result, the latter only mitigated by the absence of 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%, so all three parameters are documented in the schema and the baseline is 3. The description adds modest value by pairing markers with their expected units and the '↔' symbol hinting that conversion is bidirectional and the target unit is derived automatically despite there being no toUnit parameter, but it never states this explicitly.

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?

States a specific verb+resource: converting a lab test value between measurement units. The parenthetical enumerates concrete conversions (glucose mmol/L ↔ mg/dL, hemoglobin g/L ↔ g/dL, creatinine, etc.), which makes it unmistakably distinct from the sibling calculators such as calculate_egfr or calculate_1rm.

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 it should be used when a lab value's units differ from the desired units. There is no explicit statement of when to prefer it over a sibling (e.g., versus calculate_egfr for derived renal values) and no exclusions or prerequisites.

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