Skip to main content
Glama
Islam0953
by Islam0953

Convert a lab value between units

convert_lab_value

Convert a blood-chemistry result between conventional and SI units by analyte name or English/Russian synonym; auto-selects the target unit when only two units exist.

Instructions

Convert a single blood-chemistry result between conventional and SI units (e.g. glucose mg/dL <-> mmol/L, HbA1c % <-> mmol/mol). The analyte can be given by name or a common synonym in English or Russian. If to_unit is omitted and the analyte has exactly two units, it converts to the other one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesNumeric value to convert.
analyteYesAnalyte name or synonym, e.g. "glucose", "HbA1c", "глюкоза".
to_unitNoTarget unit. Optional when the analyte has only two units.
from_unitYesUnit the value is currently in, e.g. "mg/dL".
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: accepts synonyms, converts to the other unit if to_unit omitted and only two units exist. However, it does not describe error handling for unsupported analytes, analytes with more than two units when to_unit is omitted, or the output format. Some edge-case transparency is missing.

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?

The description is two sentences, front-loaded with the main purpose, and includes valuable examples without fluff. Every sentence adds necessary context about synonyms and optional conversion behavior. Perfectly concise.

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 relatively simple tool with a complete schema and no output schema, the description covers the core functionality, parameter intent, and special optional behavior. It only lacks explicit handling of error/edge cases (e.g., analytes with >2 units and omitted to_unit), which would make it fully complete. Given the simplicity, it is nearly sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents all four parameters with 100% coverage, so the baseline is 3. The description adds value by explaining the optional to_unit behavior (converts to the other unit if exactly two units) and provides analyte examples including a Russian synonym, enriching the schema's context.

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?

The description clearly states the tool converts a single blood-chemistry result between conventional and SI units, with concrete examples (glucose mg/dL <-> mmol/L, HbA1c % <-> mmol/mol). This verb+resource scope distinguishes it from siblings like identify_analyte and list_analytes, which serve different purposes.

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 context: use for single-result conversions between unit systems, with support for English/Russian synonym lookup and optional to_unit behavior. It does not explicitly exclude alternatives, but the focus on conversion and the sibling names make the intended use obvious. Lacks explicit 'when not to use' guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Islam0953/mcp-lab-units'

If you have feedback or need assistance with the MCP directory API, please join our Discord server