Skip to main content
Glama

Marrow Health: Apple Health for your AI

Daily values for a metric

metric_daily
Read-onlyIdempotent

One metric as one value per day (a day's total for steps or calories, its average for heart rate and the like). Prefer this to metric_samples for trends and comparisons between days.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "metric": "<metric>"
    },
    "name": "metric_daily"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD, inclusive (optional, default today)
daysNoDays back (default 30, max 400)
fromNoFirst day, YYYY-MM-DD on the phone's calendar (optional, used instead of days)
metricYesMetric key

Output Schema

NameRequiredDescriptionDefault
daysNoYYYY-MM-DD to value
metricNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavior: results are pre-aggregated per day and the aggregation function varies by metric. It does not mention timezone or calendar handling for day boundaries, though the schema scopes dates to the phone's calendar.

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?

Two sentences, no filler: the result shape comes first, the routing hint second. Every clause earns its place.

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 an output schema, full annotation coverage, and complete parameter docs, only the narrow question of how day boundaries and timezones are resolved is unaddressed. Otherwise an agent has everything it needs to call this correctly.

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

Parameters3/5

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

Schema coverage is 100% and all four parameters are self-documented, including defaults, the 400-day max, and the from/days mutual exclusivity. The description adds no parameter-level detail beyond what the schema already states, so the baseline 3 applies.

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?

Names the resource (one metric) and the exact shape of the result (one value per day), and goes further by defining what that value means per metric type: a day's total for steps or calories, an average for heart rate. An agent can distinguish this from metric_samples without opening a schema.

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?

"Prefer this to metric_samples for trends and comparisons between days" names the alternative and the condition that selects it. It stops short of stating the inverse case explicitly (use metric_samples for raw or intra-day readings), which the agent must infer.

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