Skip to main content
Glama

Search activities

garmin_search_activities
Read-only

Search and filter recorded Garmin activities by date, type, name, metrics, or location to find runs, rides, swims, and dives; retrieve activity IDs for detailed splits and stats.

Instructions

Recorded activities (runs, rides, swims, strength, dives, ...), newest first, with name, type, start time, distance, duration, pace/speed, HR, power, cadence, calories, elevation, and training effect. Pass an activityId to garmin_get_activity for splits and full detail.

All filters are optional and combine: start, end: YYYY-MM-DD inclusive, by the activity's local start date. Omit both to search all dates. With only end, the search covers the 7 days ending on it; with only start, it runs through today. search: text in the activity name or description. activity_type: parent type key, e.g. running, cycling, swimming, strength_training, hiking, walking. activity_subtype: a child key such as trail_running or indoor_cycling. excluded_activity_subtypes: child keys to leave out. event_type: race, training, recreation, fitness, specialEvent, or uncategorized. favorite: true for favorites only, false for non-favorites. exclude_children: hide individual legs of multisport activities. sort_by: a field such as distance, duration, or name (default: start time). sort_order: asc or desc (default desc). min_/max_distance (meters), min_/max_duration (timer seconds), min_/max_elapsed_duration (seconds including pauses), min_/max_elevation (gain, meters), min_avg_power (watts). north, south, east, west: a bounding box in decimal degrees around the start location; give all four or none. Dives: min_/max_max_depth (centimeters), deco_dive, min_/max_bottom_time (seconds). required_fields: activity fields that must be present, e.g. avgPower. limit, offset: page through results (each activity is about 3-4 KB).

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

Input Schema

NameRequiredDescriptionDefault
endNo
eastNo
westNo
limitNo
northNo
southNo
startNo
offsetNo
searchNo
sort_byNo
favoriteNo
deco_diveNo
event_typeNo
sort_orderNo
max_distanceNo
max_durationNo
min_distanceNo
min_durationNo
activity_typeNo
max_elevationNo
max_max_depthNo
min_avg_powerNo
min_elevationNo
min_max_depthNo
max_bottom_timeNo
min_bottom_timeNo
required_fieldsNo
activity_subtypeNo
exclude_childrenNo
max_elapsed_durationNo
min_elapsed_durationNo
excluded_activity_subtypesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations cover only readOnlyHint and openWorldHint; the description goes well beyond by disclosing default sort and order, that exclude_children hides multisport legs by default, that coordinates must be supplied as a complete set, and the ~3-4 KB per-activity payload cost relevant to paging. It stops short of stating any limit ceiling or how conflicting min/max ranges are handled.

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 with output content, then the sibling hand-off, then filters grouped logically (dates, text, type, event, metrics, geo, dive, paging). Dense and mostly waste-free, though the 'min_/max_' shorthand for several families makes a few lines require careful re-reading.

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 32-parameter tool with no output schema, the description supplies return fields, paging mechanics, and date default behavior, which is close to complete. Remaining minor gap is the absence of a stated maximum for limit/offset.

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?

With 0% schema description coverage across 32 parameters, the description carries the full burden and does so: units for distance (meters), duration (timer vs elapsed seconds), elevation gain, power (watts), dive depth (centimeters) and bottom time, plus the accepted key vocabularies for activity_type, activity_subtype, and event_type. This is meaning the schema alone cannot supply.

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?

Opens with a specific verb+resource plus enumerated return fields ('runs, rides, swims, strength, dives'), and explicitly routes deep-detail requests to garmin_get_activity for splits. An agent can distinguish this search/list tool from the single-activity sibling without inspecting any schema.

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?

Gives explicit when-to-use for the sibling ('Pass an activityId to garmin_get_activity for splits and full detail') and precise date-range semantics including the asymmetric defaults (only end = 7 days ending on it; only start = through today; neither = all dates). Also states that filters are optional and combine, and that the bounding box must be all four or none.

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