Skip to main content
Glama

tag_activity

Set CONTEXT tags on one completed activity (full-array write; empty array clears). Tags describe how the session should be READ, not what it contained: workout (a plain training session — read it against the plan), heat (hot conditions — HR inflated, output depressed, expected), altitude (ridden high — hypoxic shift, lower power is normal), indoor (turbo trainer, treadmill or a virtual platform — still air means HR climbs through the session at unchanged power, so drift is expected and is not a fitness signal; speed, distance and pace are the platform's invention, so judge power, HR and RPE and never km or min/km, and never compare them with outdoor numbers), race (max effort by design — grade vs the race goal, not the plan), test (FTP/lactate/field test — peak efforts deliberate; consider estimate_thresholds after), group (group ride — surging, structure deviations expected), commute (transport volume, not training intent), offroad (a run on trail, park or dirt — its pace is the terrain's: judge HR, RPE and time, never compare its min/km with a road run), openwater (a swim in a lake, the sea or a river — no walls or push-offs, sighting, current and waves, maybe a wetsuit, GPS metres: never compare its pace per 100 m with a pool swim or read it against the CSS; judge time, RPE and feel; a swim without it was in a pool). Use when the athlete tells you the context ('вчера была жара', 'это была гонка') or when you infer it and they confirm. Immediate write — the tag chips appear on the activity card.

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": {
      "id": "<id>",
      "tags": "<tags>"
    },
    "name": "tag_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
tagsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / tags / items / enum
      Previous value: -[
      -  "workout",
      -  "heat",
      -  "altitude",
      -  "indoor",
      -  "race",
      -  "test",
      -  "group",
      -  "commute",
      -  "offroad"
      -]New value: +[
      +  "workout",
      +  "heat",
      +  "altitude",
      +  "indoor",
      +  "race",
      +  "test",
      +  "group",
      +  "commute",
      +  "offroad",
      +  "openwater"
      +]
    • changedInput schema / properties / tags / maxItems
      Previous value: -9New value: +10
  2. Changed2 schema fields changed
    • changedInput schema / properties / tags / items / enum
      Previous value: -[
      -  "workout",
      -  "heat",
      -  "altitude",
      -  "indoor",
      -  "race",
      -  "test",
      -  "group",
      -  "commute"
      -]New value: +[
      +  "workout",
      +  "heat",
      +  "altitude",
      +  "indoor",
      +  "race",
      +  "test",
      +  "group",
      +  "commute",
      +  "offroad"
      +]
    • changedInput schema / properties / tags / maxItems
      Previous value: -8New value: +9
  3. First observed

TDQS

A4.5/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the annotations: the call is a full-array replacement, an empty array clears tags, and the write is immediate with chips appearing on the activity card. That is solid context for a non-destructive mutation, but it does not cover failure modes (unknown id, non-completed activity) or whether prior tags must be read first.

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 operative instruction is front-loaded and the tag glossary is ordered and scannable, with every entry adding a distinct analytical rule. It is long and the indoor/openwater entries are dense multi-clause sentences, so it is efficient rather than tight.

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

Completeness5/5

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

For a two-parameter tagging tool it covers everything an agent needs: what the tags mean, when to apply them, that the write replaces rather than appends, and the immediate visible effect. No output schema exists, and the return effect is described in prose instead.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage the schema supplies only bare enum strings; the description supplies the interpretation of every single tag (heat inflates HR, indoor drift is not fitness signal, openwater pace not comparable to CSS) plus the replacement semantics of the array. That is far more meaning than the schema carries.

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?

The opening sentence gives a specific verb and resource (set CONTEXT tags on one completed activity) plus the write semantics in parentheses. It is unmistakably distinct from siblings like set_activity_notes, rename_activity or edit_activity.

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

Usage Guidelines5/5

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

Explicit activation conditions are given with quoted athlete utterances ('вчера была жара', 'это была гонка') and the inference-plus-confirmation path. It also routes forward, telling the agent to consider estimate_thresholds after a test tag.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources