Skip to main content
Glama

Search activities

search_activities
Read-onlyIdempotent

Find and filter recorded Garmin activities by date, type, distance, duration, elevation, name or location, returning activity IDs and key stats for follow-up analysis.

Instructions

List individual recorded activities (runs, rides, swims, strength, etc.) with the activity_id needed for get_activity and get_activity_analysis. Filter by date, type, race, distance, duration, elevation gain, name text or a lat/long box. For totals, averages or trends over weeks/months, use summarize_activities instead: it is far smaller. Default detail='compact' returns key stats only (startTimeLocal as local 'YYYY-MM-DD HH:MM', distance m, duration/movingDuration s, averageSpeed/maxSpeed m/s, HR, elevation, calories, cadence, power, training effect). Use detail='full' only when a field you need is missing, and with a small limit. Sport-specific extras such as golf scorecards, shot data or dive logs are NOT available.

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

Input Schema

NameRequiredDescriptionDefault
areaNoOnly activities that started inside this latitude/longitude box (decimal degrees).
limitNoMax results (1-100).
startNoOffset for paging.
detailNocompact
periodNoNamed period resolved in the user's time zone (weeks start Monday). Use instead of start_date/end_date.
sort_byNoSort field. Use distance or averageSpeed to find longest or fastest.startLocal
end_dateNoOnly activities on/before this date.
event_typeNoOnly activities tagged with this event type, e.g. race.
sort_orderNodesc
start_dateNoOnly activities on/after this date.
activity_typeNoParent type key, e.g. running, cycling, swimming, walking, hiking, fitness_equipment. For anything narrower use activity_subtype.
name_containsNoText the activity name contains (case-insensitive), e.g. 'parkrun' or 'tempo'.
max_distance_mNoMaximum distance in metres.
min_distance_mNoMinimum distance in metres.
activity_subtypeNoSubtype key, e.g. trail_running, treadmill_running, road_biking, strength_training. Works without activity_type.
exclude_childrenNoHide the legs of multisport activities (e.g. a triathlon's swim/bike/run), keeping the parent.
max_duration_minNoMaximum duration in minutes.
min_duration_minNoMinimum duration in minutes.
max_elevation_gain_mNoMaximum elevation gain in metres.
min_elevation_gain_mNoMinimum elevation gain in metres.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.0
    • changedInput schema / properties / activity_subtype / description
      Previous value: -"Subtype key within activity_type, e.g. trail_running, treadmill_running, road_cycling."New value: +"Subtype key, e.g. trail_running, treadmill_running, road_biking, strength_training. Works without activity_type."
    • changedInput schema / properties / activity_type / description
      Previous value: -"Parent type key, e.g. running, cycling, swimming, strength_training, walking, hiking."New value: +"Parent type key, e.g. running, cycling, swimming, walking, hiking, fitness_equipment. For anything narrower use activity_subtype."
  2. Changed1 schema field changedv1.4.1
    • changedInput schema / properties / period / enum
      Previous value: -[
      -  "today",
      -  "yesterday",
      -  "last_7_days",
      -  "last_28_days",
      -  "last_30_days",
      -  "last_90_days",
      -  "last_365_days",
      -  "this_week",
      -  "last_week",
      -  "this_month",
      -  "last_month",
      -  "this_year",
      -  "last_year"
      -]New value: +[
      +  "today",
      +  "yesterday",
      +  "last_7_days",
      +  "last_28_days",
      +  "last_30_days",
      +  "last_90_days",
      +  "last_180_days",
      +  "last_365_days",
      +  "this_week",
      +  "last_week",
      +  "this_month",
      +  "last_month",
      +  "this_year",
      +  "last_year"
      +]
  3. Changed7 schema fields changed
    • addedInput schema / properties / area
      Added value: +{
      +  "description": "Only activities that started inside this latitude/longitude box (decimal degrees).",
      +  "properties": {
      +    "east": {
      +      "maximum": 180,
      +      "minimum": -180,
      +      "type": "number"
      +    },
      +    "north": {
      +      "maximum": 90,
      +      "minimum": -90,
      +      "type": "number"
      +    },
      +    "south": {
      +      "maximum": 90,
      +      "minimum": -90,
      +      "type": "number"
      +    },
      +    "west": {
      +      "maximum": 180,
      +      "minimum": -180,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "north",
      +    "south",
      +    "west",
      +    "east"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / exclude_children
      Added value: +{
      +  "description": "Hide the legs of multisport activities (e.g. a triathlon's swim/bike/run), keeping the parent.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_duration_min
      Added value: +{
      +  "description": "Maximum duration in minutes.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / max_elevation_gain_m
      Added value: +{
      +  "description": "Maximum elevation gain in metres.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / min_duration_min
      Added value: +{
      +  "description": "Minimum duration in minutes.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / min_elevation_gain_m
      Added value: +{
      +  "description": "Minimum elevation gain in metres.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / name_contains
      Added value: +{
      +  "description": "Text the activity name contains (case-insensitive), e.g. 'parkrun' or 'tempo'.",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. First observedv1.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is low, but the description still earns credit by disclosing the actual return payload of detail='compact' with field names and units (startTimeLocal format, metres, seconds, m/s) and the cost tradeoff of detail='full'. It does not discuss paging behavior beyond what limit/start imply.

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 purpose and the sibling handoff before any detail, and every sentence carries information — routing, return shape, or scope limits. The parenthetical compact-field list is long but justified because there is no output schema; overall it is dense rather than padded.

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 20-parameter tool with a nested area object and no output schema, the description covers purpose, return contents, units, the alternative tool, and unavailable data. Remaining gaps are minor: paging default of 20 results, and the exclude_children/multisport behavior are left entirely to the schema.

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 90%, so the baseline is 3; the description adds real meaning on the one field the schema leaves bare — detail — by specifying the default, the compact payload contents, and the condition for choosing full. It also summarizes the filter families (date, type, race, distance, duration, elevation, name, lat/long box) in one sweep, though it does not explain exclude_children or the period vs. start_date/end_date precedence beyond what the schema states.

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?

States a specific verb and resource ('List individual recorded activities'), names concrete activity kinds, and immediately clarifies its role as the id-provider that feeds get_activity and get_activity_analysis. It also draws a hard line against summarize_activities, so an agent can distinguish it without opening either 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 routing: use this for individual activities, use summarize_activities for totals, averages and trends because it is 'far smaller'. It also states when to escalate to detail='full' ('only when a field you need is missing, and with a small limit') and adds a negative boundary that sport-specific extras are unavailable.

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