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
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | 最近活动数量,默认5 | |
| type | No | 运动类型: Ride(骑行), Run(跑步), Swim(游泳)等,默认Ride | |
| newest | No | 最新日期,ISO-8601格式 (如: 2026-01-20),可选,默认为今天 | |
| lookback_days | No | 向前回溯天数(用于扩大候选集),默认120 |