Skip to main content
Glama

Etapa sign-up: build the rider's guide

etapa_build_guide
Destructive

Saves the rider's answers to their Etapa account and starts building their guide, as the app does. Every agreement must be true. Building takes a minute or two: call etapa_get_guide next.

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": {
      "consent": "<consent>",
      "name": "<name>",
      "activity": "<activity>",
      "cyclingFrequency": "<cyclingFrequency>",
      "intent": "<intent>"
    },
    "name": "etapa_build_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWhat their companion calls them
guideNoFor `fitter` and `find_goal`
intentYesWhat they want: `getting_started` or `returning` takes `beginner`; `find_goal` or `fitter` takes `guide`
consentYesAll four agreements, each answered yes by the rider
activityYesHow much exercise they do now, of any kind
beginnerNoFor `getting_started` and `returning`
companionNoWho guides them; matteo for a new rider with no preference. Leave out for a rider who has one and didn't ask to change
longestRideNoTheir longest ride in the last 3 months, as a band
longestRideKmNoOr the distance in km, if they gave a number
cyclingFrequencyYesWhen they last rode a bike, or how often they ride

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • addedInput schema / properties / activity / description
      Added value: +"How much exercise they do now, of any kind"
    • addedInput schema / properties / beginner / properties / goal / description
      Added value: +"What to build up to: `habit` (25 km), `endurance` (50 km) or `century` (100 km)"
    • addedInput schema / properties / beginner / properties / rideSetting / description
      Added value: +"Where they ride"
    • addedInput schema / properties / beginner / properties / ridesPerWeek / description
      Added value: +"Rides a week"
    • addedInput schema / properties / beginner / properties / strengthPerWeek / description
      Added value: +"Strength sessions a week"
    • addedInput schema / properties / beginner / properties / weeks / description
      Added value: +"How long the guide runs, in weeks"
    • addedInput schema / properties / consent / properties / age16 / description
      Added value: +"They are 16 or over"
    • addedInput schema / properties / consent / properties / aiCompanion / description
      Added value: +"They understand their companion is an AI"
    • addedInput schema / properties / consent / properties / healthNote / description
      Added value: +"They consent to the health note: guidance, not medical advice, and Etapa processing the health details they share"
    • addedInput schema / properties / consent / properties / termsAndPrivacy / description
      Added value: +"They agree to the terms of use and privacy policy"
    • addedInput schema / properties / cyclingFrequency / description
      Added value: +"When they last rode a bike, or how often they ride"
    • addedInput schema / properties / guide / properties / bikes / description
      Added value: +"The bikes they ride; `indoor` for a trainer"
    • addedInput schema / properties / guide / properties / event / description
      Added value: +"The event they're training for (`find_goal`), as `etapa_find_event` found it"
    • addedInput schema / properties / guide / properties / event / properties / date / description
      Added value: +"Its date, YYYY-MM-DD"
    • addedInput schema / properties / guide / properties / event / properties / distanceKm / description
      Added value: +"The distance they're riding, in km"
    • addedInput schema / properties / guide / properties / event / properties / elevationM / description
      Added value: +"Its climbing in metres, if known"
    • addedInput schema / properties / guide / properties / event / properties / name / description
      Added value: +"The event's name"
    • addedInput schema / properties / guide / properties / indoorPerWeek / description
      Added value: +"Indoor rides a week"
    • addedInput schema / properties / guide / properties / outdoorPerWeek / description
      Added value: +"Outdoor rides a week"
    • addedInput schema / properties / guide / properties / strengthPerWeek / description
      Added value: +"Strength sessions a week"
    • addedInput schema / properties / intent / description
      Added value: +"What they want: `getting_started` or `returning` takes `beginner`; `find_goal` or `fitter` takes `guide`"
  2. Changed5 schema fields changed
    • changedInput schema / properties / beginner / properties / startDate / description
      Previous value: -"`this_monday`, `next_monday`, or a date YYYY-MM-DD"New value: +"`today`, `this_monday`, `next_monday`, or a date YYYY-MM-DD"
    • changedInput schema / properties / beginner / properties / startDate / pattern
      Previous value: -"^(this_monday|next_monday|\\d{4}-\\d{2}-\\d{2})$"New value: +"^(today|this_monday|next_monday|\\d{4}-\\d{2}-\\d{2})$"
    • changedInput schema / properties / guide / properties / startDate / description
      Previous value: -"`this_monday`, `next_monday`, or a date YYYY-MM-DD"New value: +"`today`, `this_monday`, `next_monday`, or a date YYYY-MM-DD"
    • changedInput schema / properties / guide / properties / startDate / pattern
      Previous value: -"^(this_monday|next_monday|\\d{4}-\\d{2}-\\d{2})$"New value: +"^(today|this_monday|next_monday|\\d{4}-\\d{2}-\\d{2})$"
    • addedInput schema / properties / guide / properties / weeks / description
      Added value: +"Only for a guide to stay fit. For an event, leave it out: the guide runs from the start date to the event"
  3. Added

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, idempotentHint=false and openWorldHint=true; the description adds value beyond them by disclosing the consent precondition and the asynchronous build latency that forces a follow-up call. It stops short of warning that a repeat call is non-idempotent and may create a second guide, which is the most consequential risk the annotations flag.

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 tight sentences: outcome first, precondition second, next step last. Nothing is redundant and the state-changing nature is front-loaded.

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?

For a ten-parameter, nested, mutating sign-up tool with no output schema, the description covers the outcome, the blocking precondition and the required next call. It could say more about what happens on a rejected consent or a duplicate submission, but the rich schema carries most of the remaining burden.

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 the schema already carries the semantics of all ten parameters, including the intent branching between `beginner` and `guide`. The description adds no field-level meaning beyond the consent precondition, 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 pair ('saves the rider's answers', 'starts building their guide') and anchors it to the real product behavior ('as the app does'). It also names the follow-up sibling `etapa_get_guide`, so an agent can place it in the sign-up flow without opening a 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 sequencing guidance ('Building takes a minute or two: call `etapa_get_guide` next') and a hard precondition ('Every agreement must be true'). It does not say when to prefer this over sibling mutators like `etapa_apply_change` or `etapa_update_session`, so exclusion guidance is absent.

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.