Skip to main content
Glama

Etapa: change a session in the guide

etapa_update_session
DestructiveIdempotent

Changes one session of the rider's guide, as the app's session screen does: done (they rode it), not_done, skip (not doing it), unskip, move (to another day, or week), or change (its length, distance, effort or description). Use the session's id from etapa_get_guide. Only what the rider asked for.

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": {
      "sessionId": "<sessionId>",
      "action": "<action>"
    },
    "name": "etapa_update_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoFor `move`: the day, as a name (Thursday) or 0 (Monday) to 6 (Sunday)
weekNoFor `move`: the week, if not its own
titleNoFor `change`: its new name
actionYesWhat to do with it (see the description)
effortNoFor `change`: how hard it is
sessionIdYesThe session's id, from `etapa_get_guide`
distanceKmNoFor `change`: its new distance in km
descriptionNoFor `change`: what the session is, in plain words
durationMinsNoFor `change`: its new length in minutes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"What to do with it (see the description)"
    • addedInput schema / properties / description / description
      Added value: +"For `change`: what the session is, in plain words"
    • addedInput schema / properties / distanceKm / description
      Added value: +"For `change`: its new distance in km"
    • addedInput schema / properties / durationMins / description
      Added value: +"For `change`: its new length in minutes"
    • addedInput schema / properties / effort / description
      Added value: +"For `change`: how hard it is"
    • addedInput schema / properties / sessionId / description
      Added value: +"The session's id, from `etapa_get_guide`"
    • addedInput schema / properties / title / description
      Added value: +"For `change`: its new name"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context by explaining what each action means semantically and that the tool mirrors the app's session screen. It stops short of saying what happens to conflicting or omitted fields, or whether changes are reversible.

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?

Front-loads the verb and resource, then packs the action semantics into one dense clause followed by two short, purposeful sentences. Slightly compressed by the parenthetical action list, but no sentence is wasted.

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?

With nine parameters and no output schema, the description covers the important unknowns: action vocabulary, id provenance, and scope of edits. It could say more about conditional parameter requirements per action (e.g. `move` needing a day) and about failure behavior, but nothing essential is missing for correct invocation.

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%, and each property already carries a 'For `move`' or 'For `change`' note, so the description's recap of length, distance, effort and description adds little new. Baseline 3 is appropriate when the schema does the heavy lifting.

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 (changes) and resource (one session of the rider's guide) and then enumerates the six exact actions it supports (done, not_done, skip, unskip, move, change) with a gloss for each. An agent can distinguish this from etapa_apply_change or etapa_build_guide without opening the 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 clear context: use the session id obtained from `etapa_get_guide`, and scope the mutation to 'Only what the rider asked for.' It does not explicitly state when to prefer a sibling such as etapa_apply_change, so routing to alternatives is left to inference.

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.