Skip to main content
Glama

Explain lab results against reviewed reference ranges

interpret_results
Read-onlyIdempotent

Flag each pasted lab value as low / normal / high against TestWell's physician-reviewed reference catalog (130+ markers; sex- and age-specific bands where they exist), with the reviewed 'what high/low suggests' copy, retest guidance, cited sources and links to the marker's page and, where one exists, its high/low interpretation page. Stateless — values are not stored or logged. Educational, not a diagnosis; the user's own report range takes precedence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageNo
sexNo
valuesYesResults to explain, e.g. [{marker:'TSH', value:5.2, unit:'mIU/L'}, {marker:'ferritin', value:12}]
pregnancyNo
postmenopausalNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsNo
summaryNo
reviewedNo
disclaimerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "disclaimer": {
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "citations": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "label": {
      +                  "type": "string"
      +                },
      +                "url": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "deviationPct": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Distance outside the band as % of band width"
      +          },
      +          "flag": {
      +            "enum": [
      +              "low",
      +              "normal",
      +              "high",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "found": {
      +            "type": "boolean"
      +          },
      +          "input": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "marker": {
      +                "type": "string"
      +              },
      +              "unit": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "value": {
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "links": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "biomarker": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "interpretation": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "orderTest": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "marker": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "range": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "max": {
      +                    "type": "number"
      +                  },
      +                  "min": {
      +                    "type": "number"
      +                  },
      +                  "qualifier": {
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  },
      +                  "unit": {
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "retest": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "slug": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "suggestions": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "suggests": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Reviewed copy for this direction"
      +          },
      +          "unitMismatch": {
      +            "type": "boolean"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "reviewed": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "catalog": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "reviewer": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "summary": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "high": {
      +          "type": "number"
      +        },
      +        "low": {
      +          "type": "number"
      +        },
      +        "matched": {
      +          "type": "number"
      +        },
      +        "normal": {
      +          "type": "number"
      +        },
      +        "total": {
      +          "type": "number"
      +        },
      +        "unknown": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already carry the safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false), and the description adds genuine value beyond them: 'Stateless — values are not stored or logged' is a concrete privacy/behavioral commitment, 'Educational, not a diagnosis' is a scope limitation, and the precedence rule clarifies interpretation authority. The listed output composition (reviewed copy, retest guidance, cited sources, links) further sets expectations. No contradiction with annotations.

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?

Three sentences, each with a distinct job: core action plus output composition, statelessness, and the educational disclaimer with precedence rule. The first sentence is dense but every clause commits to a concrete deliverable (130+ markers, sex/age bands, copy, retest guidance, sources, links), and the most decision-relevant action is front-loaded. Slightly heavy, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and annotations cover the safety profile, so the description does not need to detail return values or read-only behavior. The core action and output contents are well covered. The real gaps are the unexplained pregnancy/postmenopausal parameters, the unstated behavior when a pasted marker is absent from the 130+ marker catalog, and the fact that age/sex are optional despite being central to band selection — for a tool this complex, that keeps it from being fully complete.

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

Parameters2/5

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

Schema description coverage is only 20% — only the 'values' array carries an example. The description partially compensates by mentioning 'sex- and age-specific bands,' which gives meaning to the age and sex parameters. However, pregnancy and postmenopausal are never explained in either the schema or the description; an agent cannot tell how these booleans affect band selection or interact with age/sex, which is a consequential gap for a lab-interpretation tool where reference ranges shift significantly with physiological state.

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 opens with a specific verb and outcome — 'Flag each pasted lab value as low / normal / high' — against a concrete resource: TestWell's physician-reviewed reference catalog. It is unambiguous against siblings: lookup_reference_range retrieves ranges rather than flagging values, convert_units converts, and recommend_tests recommends rather than interprets. The detailed output commitments (interpretation copy, retest guidance, cited sources, marker-page links) leave no doubt about the tool's function.

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 usage context: an agent should reach for this when a user has pasted lab values from a report and wants them flagged and explained with sources and retest guidance. It adds usable boundaries — 'Educational, not a diagnosis' and 'the user's own report range takes precedence' — that shape how the output should be framed. It does not explicitly name alternatives or state when not to use it, but the context is specific enough to route correctly.

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