Skip to main content
Glama
andronaft

health-os

get_trend

Read-only

Test whether a health marker is increasing, decreasing, or stable over time using Mann-Kendall statistics; returns direction, p-value, and slope. Requires 5+ approved values.

Instructions

Statistical trend of one marker over time (Mann-Kendall test + slope) on approved values: direction increasing / decreasing / no_trend with z, p-value and slope per measurement. Needs at least 5 values in the window, otherwise returns no_trend with the reason. Use for "is X going up/down"; for the raw values use query_observations. type_code: catalog code such as ldl, hemoglobin, vitamin_d, resting_hr, hrv (as returned by query_observations / sql_query on v_observations). days: window (default 1825 ≈ 5 years).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
type_codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond them: the minimum-5-values threshold, the no_trend-with-reason fallback, and the restriction to approved values. It stops short of describing pagination or performance, but for a read-only statistical tool this is solid.

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 core purpose and output shape, then routing guidance, then parameter notes. Dense but nearly every clause adds information; the parenthetical method name and unit glosses are justifiable, though the description is on the longer side.

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

Completeness5/5

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

Output schema exists, so return fields need not be re-specified, yet the description still summarizes the result shape (direction, z, p-value, slope). Combined with usage routing, the 5-value precondition, and parameter meanings, nothing an agent needs to invoke this correctly is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must carry the burden, and it does: type_code is explained as a catalog code with concrete examples (ldl, hemoglobin, vitamin_d) plus where to obtain it, and days is described as the window with its default meaning (~5 years). Both parameters gain meaning not present in the schema.

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+method ('Statistical trend of one marker over time (Mann-Kendall test + slope)') and scopes it to 'approved values'. It also explicitly distinguishes itself from the sibling query_observations, so an agent can tell them apart without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('Use for "is X going up/down"') and names the alternative for the contrasting case ('for the raw values use query_observations'). It also states the prerequisite (at least 5 values in the window) that determines whether the tool is even applicable.

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