Skip to main content
Glama

A Good Sign: Apple Health MCP

Get Health Metric

get_metric
Read-only

Summarize a numeric health metric for the authenticated user only. Without limit, the aggregate covers the complete window server-side; endDate defaults to now, so omitting limit always yields a complete aggregate. Pass bucket (day or hour) with an IANA timezone for per-day or per-hour aggregates computed on the user's local calendar — use this for questions like "steps per day this week". Passing limit caps the aggregate to the newest samples and marks coverage.complete false.

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": {
      "type": "<type>"
    },
    "name": "get_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
limitNo
bucketNoGroup the aggregate into per-day or per-hour buckets by sample start date. Buckets use the supplied timezone and omit empty periods.
endDateNo
timezoneNoIANA time zone identifier (for example America/New_York) used to compute bucket boundaries. Defaults to UTC. Pass the user's local timezone so daily buckets align with their calendar days.
startDateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only and non-destructive behavior, so the description's added value is aggregation semantics: unbounded calls aggregate the full server-side window, endDate defaults to now, and limit reduces coverage while setting coverage.complete to false. This is meaningful behavioral context beyond the annotations, though return fields and the aggregation method are not described.

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 and information-dense, with the limit/endDate interaction stated clearly. It is slightly repetitive with the schema's bucket and timezone wording but contains no real padding.

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

Completeness3/5

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

Covers the critical limit/coverage tradeoff and bucketing behavior needed to call it correctly. With no output schema, it leaves the aggregate's return shape (value, unit, aggregation method) and startDate semantics unstated, so an agent cannot fully predict the result.

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 coverage is only 33%, so the description must compensate; it explains limit truncation, the endDate default, bucket local-calendar computation, and timezone alignment. startDate remains undocumented, and type relies on its enum.

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?

States a specific verb ('Summarize') and resource ('numeric health metric') and scopes it to the authenticated user only. It does not explicitly contrast with siblings such as query_samples, so sibling differentiation is only partial.

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

Usage Guidelines3/5

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

Gives a concrete when-to-use case for bucket ('steps per day this week') and explains the effect of limit. It does not say when to prefer this over alternatives like query_samples or when not to use it.

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