Skip to main content
Glama

A Good Sign: Apple Health MCP

Get Workouts

get_workouts
Read-only

Summarize workout samples for the authenticated user only. Workouts 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 workouts matched. 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": "get_workouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

A4.7/5.0
Behavior5/5

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

Annotations already establish a safe, closed read, so the description's added value is in the operational details it supplies: user-only scoping, interval-overlap matching rather than containment, ordering defaults, the 100/1000 limit bounds, and the existence of summary.mayHaveMore for detecting truncation. Truncation signaling is exactly the kind of behavior an agent cannot get from annotations.

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?

Four sentences, each covering a distinct concern (scope, matching rule, result ordering/truncation, sample opt-in), with purpose front-loaded. No sentence restates the tool name or padding.

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 parameterized read with no output schema, the description covers scoping, matching, ordering, truncation, and the sample toggle well. The remaining gap is the result shape: only summary.mayHaveMore is named, so an agent does not know what else the summary contains.

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 only 20% (order alone), so the description must carry the rest, and it does: limit's default and maximum, the newest-first default ordering, the meaning of startDate/endDate as an overlap window rather than a containment filter, and the default-false intent of includeSamples. That is meaningful semantics beyond the raw schema types.

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 opens with a specific verb and resource ('Summarize workout samples') and scopes it explicitly ('for the authenticated user only'). The includeSamples sentence implicitly separates this summarized view from a raw-sample query, so an agent can distinguish it from siblings like query_samples without opening the 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?

It gives clear operational context: overlap semantics for the date window, default/newest-first ordering, the cap, and an explicit rule for when to enable includeSamples ('only when raw samples are required'). It stops short of naming an alternative tool for the raw-sample case, leaving that inference to the agent.

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