Skip to main content
Glama
hhopke
by hhopke

Icu Update Activity Streams

icu_update_activity_streams
Destructive

Overwrite an activity's existing time-series streams (power, heart rate, cadence) by uploading raw JSON or CSV data; use to replace stream data for an activity ID.

Instructions

Upload raw time-series streams (power, HR, cadence, etc.) onto an existing activity. Destructive — overwrites existing stream data.

Accepts JSON array or CSV. Different from get_activity_streams (READ).

Input Schema

NameRequiredDescriptionDefault
formatNoFormat of the payload: 'json' or 'csv'json
activity_idYesActivity ID to update
payload_stringYesJSON array of stream dictionaries or raw CSV data

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is carried by structured data. The description still adds value by specifying what is destroyed ('overwrites existing stream data') and what payload types are accepted, which goes beyond the boolean hint. It does not cover permissions/auth or partial-vs-full replacement semantics.

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 plus a parenthetical; the destructive warning is front-loaded and nothing is wasted. Every sentence earns its place.

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

Completeness4/5

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

An output schema and rich annotations exist, so the description needn't explain returns or safety. It covers purpose, format, and destructiveness, but leaves open whether the upload replaces all streams or merges with existing ones — a meaningful gap for a destructive write.

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 100%, so all three parameters are already documented, including the 'json'/'csv' format enum in prose. The description's 'Accepts JSON array or CSV' largely duplicates the schema rather than adding format or shape detail, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Upload raw time-series streams ... onto an existing activity') with concrete examples of stream types. It also explicitly distinguishes itself from the read counterpart get_activity_streams, so an agent can separate the two without opening either schema.

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

Usage Guidelines4/5

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

Names the read sibling as the alternative and makes the write/read split explicit, plus warns the operation overwrites existing data, which is a strong usage cue. It does not address related write siblings such as icu_update_activity (metadata edits) or when a caller should prefer a full file upload (icu_download_fit_file inverse), leaving some routing inference to the agent.

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