Skip to main content
Glama

A Good Sign: Apple Health MCP

Query Health Samples

query_samples
Read-only

Summarize health samples for the authenticated user only. Samples whose date interval overlaps the query window match. Results are ordered by start date (newest first by default) and capped at limit (default 100, max 1000); summary.mayHaveMore reports when more samples matched than were returned. Set includeSamples to true only when raw samples are required.

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

Input Schema

NameRequiredDescriptionDefault
typeNo
limitNo
orderNoSort order by sample start date. desc returns the most recent samples first.desc
endDateNo
startDateNo
includeSamplesNo

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 readOnly/non-destructive/closed-world, so the description's added value is what it says about matching and truncation: interval-overlap matching rather than strict containment, newest-first ordering, a hard cap of 1000, and a summary.mayHaveMore flag to signal truncation. That truncation signal is especially valuable since there is no output schema; the only gap is that the rest of the summary shape is unstated.

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?

Four dense sentences, front-loaded with identity and scope, then matching semantics, then paging limits, then the includeSamples rule. The limit default/max restates the schema, a minor redundancy, but everything else 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?

For a 6-parameter tool with no output schema and thin schema descriptions, the description covers matching semantics, ordering, capping, truncation signaling, and the opt-in for raw samples. What remains thin is the summary payload beyond mayHaveMore and the behavior when no date bounds are supplied.

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 17%, so the description must compensate, and it does for includeSamples, limit (default 100, max 1000), and the semantics of the start/end window via interval overlap. However, it says nothing about the enum values of type, the default sort order field versus order='asc', or the consequences of omitting startDate/endDate on a tool where every parameter is optional.

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 and resource ('Summarize health samples') plus a scope restriction ('for the authenticated user only'), so the agent knows this is a read-only aggregate query rather than a record fetch. It doesn't explicitly contrast with siblings like get_workouts or get_sleep, but the resource and summarization framing are distinctive enough to route correctly.

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?

The last sentence gives real conditional guidance ('Set includeSamples to true only when raw samples are required'), steering the default to summary-only. There is no guidance on when to prefer this over the typed sibling tools (get_workouts, get_sleep) or on what happens when the date window is omitted, leaving the main alternative selection implicit.

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