Skip to main content
Glama
Intervals.icu MCP Server

Intervals.icu MCP Server

by jiaweitao001

get_activity_intervals

Retrieve interval data for a specific activity, including detailed statistics for each interval segment. Use it to analyze workout splits and per-interval performance.

Instructions

获取活动的区间数据,包括每个间歇段的详细统计

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_intervals"
  }
}

Input Schema

NameRequiredDescriptionDefault
activity_idYes活动ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Because no annotations are provided, the description must explain the tool's behavior itself. It does give useful context about the output: per-interval segment statistics. However, it never states that the tool only reads data, what happens when an activity has no interval segments or when the data source is missing, or what the return structure is. As a result, it provides only partial behavioral disclosure.

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 a single compact sentence with no wasted wording, and the core purpose is stated up front. Its brevity borders on under-specification, but it is efficient and well structured.

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 simple one-parameter read tool with no output schema and no annotations, the definition is minimally adequate: it conveys what data is returned. However, it leaves open edge cases (activities without intervals, sport-type dependence) and offers no routing guidance among the many get_activity_* siblings. As a result, an agent cannot fully determine when this tool is the right call.

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?

There is one parameter, activity_id, and the input schema already describes it at 100% coverage ("活动ID"). The description adds no further meaning about the parameter, such as accepted formats or whether it is a local ID or a platform ID. Therefore, it meets the baseline of 3, since the schema does the work here.

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?

The description names a specific verb and resource: retrieving an activity's interval/lap segment data plus per-segment statistics ("获取活动的区间数据,包括每个间歇段的详细统计"). That clearly separates it from siblings such as get_activity_streams or get_activity_power_curve. It stops short of naming the neighboring tools it should not be confused with, so it falls just short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use guidance, no indication of when to choose this tool over get_activity_detail or get_activity_streams, and no prerequisites or exclusions. The only clue about usage is the word "interval" in the name.

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