Skip to main content
Glama
health-os

health-os

check_data_quality

Read-only

Checks stored medical records for mismatched reference ranges, extreme lab-value jumps, missing canonical values, and long-active diagnoses; use before a doctor visit or when a value looks odd.

Instructions

Checks of the stored RECORDS, not of health: reference ranges that are swapped, empty or much narrower than the same marker's other ranges (typical recognition errors); lab values that jumped ≥5× from the previous value of the same marker; approved numbers without a canonical value; the review queue; diagnoses still "active" after 2+ years. Use when the user asks whether their data is in order, before a doctor visit, or when a value looks odd. Present items as "verify against the original document", never as findings about health.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_data_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, it adds a genuinely behavioral directive: report items as 'verify against the original document' and never as findings about health — a framing constraint an agent could not infer from the schema. It does not state scan scope, volume limits, or whether results are grouped or prioritized, so it stops short of full transparency.

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?

Front-loaded with the object of the check and the 'not of health' qualifier, then a dense but useful defect list, then usage triggers, then the presentation rule. The second clause is a long run-on ('reference ranges that are swapped, empty or much narrower than the same marker's other ranges (typical recognition errors)') that costs some readability, but no sentence is 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?

With zero parameters, an output schema, and read-only annotations, the definition covers what is checked, when to invoke it, and how to present results — enough to call it correctly. It leaves open whether the scan is bounded and how results are ordered, which matters for a multi-category audit tool but is partly covered by the output schema.

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 tool takes zero parameters, so there is no parameter semantics to add and the baseline applies. The description correctly implies a full-scan, argument-free operation, consistent with the empty properties object.

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 and resource ('Checks ... the stored RECORDS') and then enumerates the exact defect classes it looks for (swapped/empty/over-narrow reference ranges, ≥5× value jumps, approved values missing a canonical value, review queue, stale 'active' diagnoses). The explicit 'not of health' contrast separates it from health-interpretation siblings such as get_anomalies or check_medication_safety.

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?

Gives three concrete trigger conditions: user asks whether data is in order, before a doctor visit, or when a value looks odd. No exclusions are stated, and 'before a doctor visit' plausibly overlaps the sibling prepare_doctor_visit without any routing guidance between them.

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