Skip to main content
Glama

Create activities (batch)

batch_create_activities

Create up to 100 activities in a single call. Same per-activity shape and rules as create_activity (notably: distance is in meters, duration in seconds, always set load on planned workouts or they will not appear in training-load or get_training_status's projection, pace step targets are seconds-per-km including for swims spoken in per-100m, and rest days are skipped rather than created). Importing a training plan is the common case: omit its rest days from the array entirely. After importing, call get_training_status with no from/to and read series plus projection — that is the week’s shape and its peak. Do not pass a long history range for this check. SWIM STEPS: the watch reads swimDrill, swimEquipment and swimStroke, never displayName. Set swimDrill on every drill ('drill'), kick ('kick') and pull ('pull') step, which keeps its normal stepType (usually 'interval'; 'drill' is never a stepType), swimEquipment to the one piece of kit that step uses, and swimStroke on every step whose stroke is named. When the athlete names their pool ("50m pool", "25 yard pool"), set poolLength. STRENGTH: write lifting, circuits and Hyrox as exercises, never as steps: items {type 'exercise', exercise, sets: one entry per set with reps and weightKg in kg, so 3x8 is three entries} and {type 'cardio', sport ('run', 'bike', 'skierg' or 'row'), distanceM or durationSec} for the runs and ergs between stations. Set sportType 'strength'. YOGA, pilates and mobility routines with named moves are exercises too, with sportType 'yoga': one exercise item per move, its sets time only (durationSec: cat-cow 2 min is one set of 120, 2x30s is two sets of 30, 1 min each side is two sets of 60), a move done on each side one set per side with 'each side' in notes, no reps or weight. Only exercises or moves the athlete named, never invented ones: "Strength 45 min" or "30 min yoga" is the duration with no exercises. Keep duration when there are exercises. An activity has exercises or steps, never both. On a planned activity exercises is the plan; on a completed one, what was done.

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": {
      "activities": "<activities>"
    },
    "name": "batch_create_activities"
  }
}

Input Schema

NameRequiredDescriptionDefault
activitiesYes

Output Schema

NameRequiredDescriptionDefault
activitiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / activities / items / properties / sportType / enum
      Previous value: -[
      -  "run",
      -  "bike",
      -  "swim",
      -  "hike",
      -  "yoga",
      -  "tennis",
      -  "golf",
      -  "soccer",
      -  "skiing",
      -  "nordicski",
      -  "skierg",
      -  "row",
      -  "kayak",
      -  "strength",
      -  "surf",
      -  "other"
      -]New value: +[
      +  "run",
      +  "bike",
      +  "swim",
      +  "hike",
      +  "yoga",
      +  "tennis",
      +  "golf",
      +  "soccer",
      +  "skiing",
      +  "nordicski",
      +  "skierg",
      +  "row",
      +  "kayak",
      +  "climb",
      +  "strength",
      +  "surf",
      +  "other"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare the mutation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false); the description adds real behavior beyond that — rest days are silently skipped, `load` must be set or the session is invisible to load charts and projections, and exercise/steps are mutually exclusive. It does not disclose what happens when some of the 100 items are invalid (partial success vs. atomic failure) or duplicate handling, which is the main behavioral risk for a 100-item batch.

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

Conciseness2/5

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

The first sentence is well front-loaded, but the body is a wall of run-on sentences and ALL-CAPS section headers that largely duplicate the already exhaustive nested schema descriptions of swimDrill, swimEquipment, swimStroke and exercise sets. The high-value workflow guidance is buried mid-paragraph and would be more useful broken out than the restated field rules.

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 exists, so return values need no explanation, and the description covers the three genuinely divergent domains (interval steps, strength/Hyrox exercises, yoga/mobility moves) plus the plan-import workflow. What remains unaddressed is batch-level failure semantics and ordering/duplicate behavior, which matter for a 100-item create.

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

Parameters4/5

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

Top-level schema coverage reads as 0% because the single `activities` array itself carries no description, so the description is doing heavy lifting: it fixes units (distance in meters, duration in seconds, pace targets in seconds-per-km even for swims spoken per 100m), poolLength semantics, and the watch-field requirements for swimDrill/swimEquipment/swimStroke. Much of this restates the deeply documented nested schema, but the cross-field rules (exercises OR steps, never both; rest days omitted) add genuine meaning the schema cannot express.

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?

Opens with a specific verb, resource and limit: 'Create up to 100 activities in a single call,' and immediately distinguishes itself from the single-record sibling by referencing create_activity's per-activity shape. An agent can tell it apart from create_activity and batch_update_activities without opening any 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?

Gives a concrete primary use case ('Importing a training plan is the common case'), an exclusion ('omit its rest days from the array entirely'), and an explicit follow-up workflow with get_training_status plus a warning not to pass a long history range. It never states outright when to prefer create_activity over the batch form, which keeps it short of a 5.

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