Skip to main content
Glama
Intervals.icu MCP Server

Intervals.icu MCP Server

by jiaweitao001

get_recent_activities_with_details

Fetches a specified number of recent activities with basic details, sorted by local start date, and expands the lookback window before trimming results to avoid incorrect recent-activity counts.

Instructions

获取最近 N 次活动列表(包含基本详情,按 start_date_local 倒序排序)。内部会用 lookback_days 扩大窗口后再截取,避免“最近N次取错”。

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

Input Schema

NameRequiredDescriptionDefault
nNo最近活动数量,默认5
typeNo运动类型: Ride(骑行), Run(跑步), Swim(游泳)等,默认Ride
newestNo最新日期,ISO-8601格式 (如: 2026-01-20),可选,默认为今天
lookback_daysNo向前回溯天数(用于扩大候选集),默认120

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it does disclose non-obvious behavior, namely descending sort by start_date_local and the internal widen-then-truncate strategy with lookback_days to avoid picking the wrong 'recent N'. It leaves out what "基本详情" actually contains, whether the call is read-only, what happens when fewer than N activities exist in the window, and any cap on n.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences: purpose and sort order first, then the one non-obvious implementation caveat. No repetition of the parameter list, no filler, and the rationale for lookback_days is exactly the detail an agent would otherwise get wrong.

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 4-parameter read with no annotations and no output schema, the description covers the core contract and the tricky windowing behavior. It is still thin on the shape of "基本详情", on empty/insufficient-result behavior, and on how it differs from the near-identical sibling list tools, so an agent has gaps when choosing between them.

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 coverage is 100%, so all four parameters are already documented in the schema, including lookback_days as a candidate-set widening window. The description confirms the truncate-after-widening semantics and the sort key, which adds modest value, but it says nothing new about n, type, or newest beyond what the schema states.

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?

"获取最近 N 次活动列表(包含基本详情,按 start_date_local 倒序排序)" gives a specific verb (获取), resource (最近 N 次活动列表), and ordering rule, so the agent knows this is a recency-bounded activity list with details. It does not name or distinguish itself from the very similar siblings get_activities_with_details or get_activities, which is what keeps it from a 5.

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 by "最近 N 次": an agent can infer it is for pulling a fixed count of newest activities rather than a date range or a search. There is no explicit when-to-use clause, no exclusion of get_activities / get_activities_with_details / search_activities, and no guidance on when the lookback_days tuning matters.

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