Skip to main content
Glama
health-os

health-os

get_anomalies

Read-only

Compares recent health marker values against your personal history to detect anomalies and list deviations worth repeating or discussing with a clinician.

Instructions

Personal-baseline anomalies: for each marker whose latest approved value is within the last days (default 90), compares it with that marker's own earlier values (mean ± SD of up to 90 previous values) and lists those beyond z_threshold (default 2), largest first. Skips markers with fewer than 5 earlier values. Useful for wearables (HRV, resting HR, sleep) and long lab histories. type_code: limit to one marker. A deviation from the user's own history is not a diagnosis — present it as "worth repeating / discussing", never as alarming.

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": "get_anomalies"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
type_codeNo
z_thresholdNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the actual computation (mean ± SD of up to 90 prior values), a silent skip rule ('skips markers with fewer than 5 earlier values'), and result ordering ('largest first'). It also sets an interpretation constraint — present deviations as 'worth repeating / discussing', never alarming — which is exactly the kind of behavioral context annotations cannot carry.

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 definition is front-loaded with the core method, then edge cases, then the interpretation caveat, in descending order of importance. Every clause carries information — defaults, skip rules, sort order — with no filler or repetition.

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?

An output schema exists, so return shape need not be explained, and the description covers method, defaults, edge cases, and interpretive framing for a three-optional-parameter analytical tool. The only shortfall is the lack of explicit sibling disambiguation against get_trend or query_observations.

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?

Schema description coverage is 0%, so the description must carry all parameter meaning, and it does define each one: `days` as the recency window for the latest value, `z_threshold` as the cutoff, and `type_code` as a single-marker filter. It could go further on type_code's accepted format or example values, which remains the one gap.

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?

The description names a specific verb and resource ('compares' each marker's latest approved value against its own history and 'lists those beyond z_threshold, largest first'), so the operation is unambiguous. It does not explicitly contrast itself with the closest sibling, get_trend, so the distinction is only implicit in the 'anomaly vs. baseline' framing.

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?

It gives concrete use contexts ('useful for wearables (HRV, resting HR, sleep) and long lab histories') and explains that type_code narrows to one marker. It stops short of stating when NOT to use it — e.g., when a plain trend view is preferable — so no explicit alternative routing is provided.

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