Skip to main content
Glama
eddmann

Garmin Connect MCP Server

by eddmann

query_activities

Read-only

Retrieve Garmin activities using flexible filters such as date range, activity type, or specific activity ID. Supports pagination to navigate large datasets.

Instructions

Query activities with flexible parameters and pagination support.

This unified tool supports multiple query patterns:

  1. Get specific activity: provide activity_id

  2. Get activities by date range: provide start_date and end_date (paginated)

  3. Get activities for specific date: provide date

  4. Get paginated activities: use cursor and limit

  5. Get last activity: no parameters

All queries can be filtered by activity_type (e.g., 'running', 'cycling').

Pagination: For large time ranges, use pagination to retrieve all activities:

  1. Make initial request without cursor

  2. Check response["pagination"]["has_more"]

  3. Use response["pagination"]["cursor"] for next page

Returns: JSON string with structure: { "data": { "activity": {...} // Single activity mode OR "activities": [...], // List mode "count": N }, "pagination": { // List mode only (when paginated) "cursor": "...", // Use for next page (null if no more) "has_more": true, "limit": 20, "returned": 20 }, "metadata": {...} }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activity_idNoSpecific activity ID to retrieve
start_dateNoStart date in YYYY-MM-DD format for range query
end_dateNoEnd date in YYYY-MM-DD format for range query
dateNoSpecific date in YYYY-MM-DD format or 'today'/'yesterday'
cursorNoPagination cursor from previous response (for continuing multi-page queries)
limitNoMaximum activities per page (1-50). Default: 10. Use pagination cursor for large datasets.
activity_typeNoActivity type filter (e.g., 'running', 'cycling')
unitNoUnit system: 'metric' or 'imperial'metric

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations indicate readOnlyHint=true, and the description reinforces this by listing only query operations. It transparently describes pagination behavior, return structure, and filtering. No contradiction with annotations.

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?

The description is fairly long but well-organized with bullet points and sections for patterns, pagination, and return structure. It front-loads the core purpose. Minor redundancy (e.g., 'List mode only (when paginated)' could be clearer) but overall efficient.

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

Completeness5/5

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

Given the output schema exists, the description covers return values. It addresses all common use cases (single, range, date, paginated, last) and filtering. Pagination guidelines are thorough. No gaps.

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 100%, so baseline 3. The description groups parameters into meaningful patterns (e.g., activity_id for specific, start_date+end_date for range) and explains combined usage, adding semantic value beyond individual schema descriptions.

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 clearly states it queries activities with flexible parameters and pagination. It lists five distinct query patterns, making its purpose unambiguous and distinguishing it from sibling tools like get_activity_details (single activity) or analyze_training_period (analysis).

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?

The description explains when to use each query pattern (e.g., specific ID, date range, last activity). It provides pagination steps. However, it does not explicitly exclude cases where sibling tools are more appropriate, such as comparing activities or analyzing training periods.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eddmann/garmin-connect-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server