Skip to main content
Glama
garmin-everything-mcp

garmin-everything-mcp

by dlekdns08

get_activity_segments

Read-only

Retrieve the segments matched in a specific Garmin activity by activity ID, enabling you to inspect segment results tied to that workout.

Instructions

[read-only] Return the segments matched in an activity. Signature: get_activity_segments(activity_id: int | str) -> list[dict[str, Any]]

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "activity_id": "<activity_id>"
    },
    "name": "get_activity_segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
activity_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the '[read-only]' tag adds nothing. The signature line contributes the return type (list of dicts), which is mild extra context, but nothing is said about permissions, result volume, pagination, or what a 'matched segment' record contains.

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?

Two short lines with the purpose front-loaded and no filler. The signature line partially restates the schema, but it also supplies the return type that the absent output schema does not, so it earns its place.

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

Completeness3/5

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

For a one-parameter read getter with no output schema, the description covers what the tool returns only at the level of 'list[dict]'. An agent can invoke it correctly but cannot anticipate the shape or size of segment results.

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 description coverage is 0% for the single activity_id parameter, and the schema itself types it only as string. The description adds the union 'int | str', which is marginal but useful and slightly at odds with the schema's string-only typing; no format, source, or lookup guidance is given.

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: return the segments matched in an activity, scoped by activity_id. That is distinguishable from siblings such as get_activity_laps or get_activity_details, though the description never names or contrasts an alternative explicitly.

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?

Usage is only implied: call it with an activity_id when you want the segment matches for that activity. There is no statement of when this is preferable to other per-activity getters, no prerequisites, and no exclusions.

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

Deploy Server

Other Tools