Geomanic Skill
This skill connects to the Geomanic MCP API to query travel statistics, manage waypoints, and analyze journeys.
Authentication
The API key is stored in the environment variable GEOMANIC_TOKEN. All requests must include it as a Bearer token.
How to call the API
Use curl via the exec tool to send JSON-RPC requests to https://geomanic.com/api/v1/mcp:
CODEBLOCK0
Available tools
get_statistics
Get aggregated travel statistics for a time period. Returns total distance (km), average/max speed (km/h), altitude, waypoint count, active days, and country breakdown with full/part days.
Required parameters: from (ISO 8601), to (ISO 8601).
Optional: suppress_flights (boolean, default true).
Example:
CODEBLOCK1
getdaterange
Get the earliest and latest waypoint dates for the user. No parameters required.
CODEBLOCK2
list_waypoints
List waypoints with optional time range, pagination, and sorting.
Optional parameters: from, to (ISO 8601), limit (default 50, max 200), offset (default 0), order ("asc" or "desc", default "desc").
CODEBLOCK3
get_waypoint
Get a single waypoint by UUID.
Required: id (string, UUID).
create_waypoint
Create a new GPS waypoint.
Required: timestamp_utc (ISO 8601), latitude (number), longitude (number).
Optional: speed_kmh, altitude, heading_deg, device_id.
update_waypoint
Update an existing waypoint by UUID.
Required: id (string, UUID).
Optional: latitude, longitude, speed_kmh, altitude, heading_deg, country_iso, place, device_id.
delete_waypoint
Delete a waypoint by UUID.
Required: id (string, UUID).
Important notes
- - All dates must be in ISO 8601 format with timezone (use UTC with Z suffix).
- For "today" queries, use the current date with T00:00:00Z to T23:59:59Z.
- The response is JSON-RPC. The actual data is inside
result.content[0].text as a JSON string. - Distance is in kilometers, speed in km/h, altitude in meters.
地理定位技能
该技能连接到Geomanic MCP API,用于查询旅行统计数据、管理航点以及分析行程。
身份验证
API密钥存储在环境变量GEOMANIC_TOKEN中。所有请求都必须将其作为Bearer令牌包含在内。
如何调用API
通过exec工具使用curl向https://geomanic.com/api/v1/mcp发送JSON-RPC请求:
bash
curl -s -X POST https://geomanic.com/api/v1/mcp \
-H Content-Type: application/json \
-H Authorization: Bearer $GEOMANIC_TOKEN \
-d {jsonrpc:2.0,id:1,method:tools/call,params:{name:TOOL_NAME,arguments:{...}}}
可用工具
get_statistics
获取指定时间段的聚合旅行统计数据。返回总距离(公里)、平均/最大速度(公里/小时)、海拔、航点数量、活跃天数以及按国家划分的完整/部分天数统计。
必需参数:from(ISO 8601格式)、to(ISO 8601格式)。
可选参数:suppress_flights(布尔值,默认为true)。
示例:
bash
curl -s -X POST https://geomanic.com/api/v1/mcp \
-H Content-Type: application/json \
-H Authorization: Bearer $GEOMANIC_TOKEN \
-d {jsonrpc:2.0,id:1,method:tools/call,params:{name:get_statistics,arguments:{from:2026-02-22T00:00:00Z,to:2026-02-22T23:59:59Z}}}
getdaterange
获取用户最早和最晚的航点日期。无需参数。
bash
curl -s -X POST https://geomanic.com/api/v1/mcp \
-H Content-Type: application/json \
-H Authorization: Bearer $GEOMANIC_TOKEN \
-d {jsonrpc:2.0,id:1,method:tools/call,params:{name:getdaterange,arguments:{}}}
list_waypoints
列出航点,支持可选的时间范围、分页和排序。
可选参数:from、to(ISO 8601格式)、limit(默认50,最大200)、offset(默认0)、order(asc或desc,默认desc)。
bash
curl -s -X POST https://geomanic.com/api/v1/mcp \
-H Content-Type: application/json \
-H Authorization: Bearer $GEOMANIC_TOKEN \
-d {jsonrpc:2.0,id:1,method:tools/call,params:{name:list_waypoints,arguments:{from:2026-02-22T00:00:00Z,to:2026-02-22T23:59:59Z,limit:10}}}
get_waypoint
通过UUID获取单个航点。
必需参数:id(字符串,UUID格式)。
create_waypoint
创建新的GPS航点。
必需参数:timestamp_utc(ISO 8601格式)、latitude(数字)、longitude(数字)。
可选参数:speedkmh、altitude、headingdeg、device_id。
update_waypoint
通过UUID更新现有航点。
必需参数:id(字符串,UUID格式)。
可选参数:latitude、longitude、speedkmh、altitude、headingdeg、countryiso、place、deviceid。
delete_waypoint
通过UUID删除航点。
必需参数:id(字符串,UUID格式)。
重要说明
- - 所有日期必须采用ISO 8601格式并包含时区(使用带Z后缀的UTC时间)。
- 对于今天查询,使用当前日期,范围为T00:00:00Z到T23:59:59Z。
- 响应格式为JSON-RPC。实际数据位于result.content[0].text中,为JSON字符串。
- 距离单位为公里,速度单位为公里/小时,海拔单位为米。