Skip to main content
Glama

Marrow Health: Apple Health for your AI

Recorded samples for a metric

metric_samples
Read-onlyIdempotent

The individual records behind one metric, each with its time, value and source app or device, newest first. Use it when the times of single readings matter. For daily totals use metric_daily. When a page is full (limit records), pass the last record's start as before to get the next page. A weight (body_mass), water (dietary_water) or body fat record you logged carries an id that edit_entry and delete_entry take.

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_samples"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD, inclusive (optional, default today)
daysNoDays back (default 7, max 400)
fromNoFirst day, YYYY-MM-DD on the phone's calendar (optional, used instead of days)
limitNoMax records (default 200, max 1000)
beforeNoPaging: the start of the last record you already have. Returns the records before it.
metricYesMetric key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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 real behavioral context beyond them: results are ordered newest first, paging is cursor-style via 'before', and certain record types carry an id consumed by edit_entry/delete_entry — a useful cross-tool consequence. It does not discuss truncation behavior or what happens with an invalid metric key.

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?

Six compact sentences, front-loaded with what the tool returns and the ordering, then when-to-use, then the sibling routing, then paging, then the id consequence. No filler and no repetition of field names already in the schema.

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?

For a six-parameter, annotation-covered read tool with no output schema, the description covers purpose, ordering, alternates and paging — enough to call it correctly. The gap is discovery of valid 'metric' keys: it never points to list_metrics, leaving the agent to guess or find keys elsewhere.

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 description coverage is 100%, so the schema already documents every parameter, including 'from' vs 'days', 'to', 'limit' and 'before'. The description's paging sentence reinforces the before/limit relationship but adds little syntax or meaning beyond what the schema states. Baseline 3 is appropriate.

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 names a specific resource ('the individual records behind one metric') and states its shape ('each with its time, value and source app or device, newest first'), which is exactly what distinguishes it from an aggregate view. It explicitly routes daily-total needs to the sibling metric_daily.

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?

'Use it when the times of single readings matter' gives the positive condition, and 'For daily totals use metric_daily' names the alternative with the selecting criterion. It also explains the paging protocol (pass the last record's start as 'before') for the case where the limit is hit.

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