Skip to main content
Glama

create_event

Create an event the athlete is preparing for (race, key ride, FTP test) on their Blocks calendar. Use when the athlete describes one in chat. Requires name + date (YYYY-MM-DD). A stage race or a race weekend is ONE event: date = its first day, endDate = its last — never one event per day. Optional: description, location, map/event-page URLs, logistics notes, prep (coach) notes, priority, target, whether they have a confirmed slot and local start time (picks the forecast hours). The GPX route is added by the athlete in the app. Event-day weather is fetched automatically when within ~16 days. Returns the new event id (pass it to set_event_notes to add detailed prep).

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": {
      "name": "<name>",
      "date": "<date>"
    },
    "name": "create_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
nameYesevent name, e.g. 'Gravel Fondo 120'
notesNoathlete logistics (parking, number pickup…)
sportNowhat the event is: the plan builds toward it and the Course tab reads only a bike event in watts; unset = guessed from the name
mapUrlNo
resultNowhat came of it, their words, e.g. '3rd AG, 83:40'
targetNotheir aim, e.g. 'sub-40'
endDateNothe LAST day of a multi-day event (stage race, race weekend), inclusive; omit for a one-day event
purposeNowhy they race it: result (a win, a finish, a time — say which in target), training (it replaces a session, no taper), fun (purely for the joy); '' clears. Ask them once if unknown
eventUrlNoofficial race / registration page
priorityNoA = season goal, B/C = on the way, '' clears
startTimeNolocal start time HH:MM
coachNotesNoprep notes (fueling, pacing, taper)
registeredNotrue when the athlete says they have a confirmed slot — not a lottery entry or a waitlist; omit when they have not said
descriptionNo
locationTextNotown / venue — also used to fetch weather

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / endDate
      Added value: +{
      +  "description": "the LAST day of a multi-day event (stage race, race weekend), inclusive; omit for a one-day event",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / registered
      Added value: +{
      +  "description": "true when the athlete says they have a confirmed slot — not a lottery entry or a waitlist; omit when they have not said",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / sport / description
      Previous value: -"what the race is (the Course tab reads a run without watts); unset = guessed from the name"New value: +"what the event is: the plan builds toward it and the Course tab reads only a bike event in watts; unset = guessed from the name"
    • changedInput schema / properties / sport / enum
      Previous value: -[
      -  "ride",
      -  "run"
      -]New value: +[
      +  "ride",
      +  "gravel",
      +  "mtb",
      +  "cx",
      +  "tt",
      +  "run",
      +  "trail",
      +  "triathlon",
      +  "duathlon",
      +  "swim",
      +  "hyrox",
      +  "ski",
      +  "other"
      +]
  3. Changed3 schema fields changed
    • changedInput schema / properties / purpose / description
      Previous value: -"why they race it: place (a position), time (a time or watts — say it in target), finish (to finish and enjoy it), training (a hard session, no taper); '' clears. Ask them once if unknown"New value: +"why they race it: result (a win, a finish, a time — say which in target), training (it replaces a session, no taper), fun (purely for the joy); '' clears. Ask them once if unknown"
    • changedInput schema / properties / purpose / enum
      Previous value: -[
      -  "place",
      -  "time",
      -  "finish",
      -  "training",
      -  ""
      -]New value: +[
      +  "result",
      +  "training",
      +  "fun",
      +  ""
      +]
    • addedInput schema / properties / result
      Added value: +{
      +  "description": "what came of it, their words, e.g. '3rd AG, 83:40'",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / purpose
      Added value: +{
      +  "description": "why they race it: place (a position), time (a time or watts — say it in target), finish (to finish and enjoy it), training (a hard session, no taper); '' clears. Ask them once if unknown",
      +  "enum": [
      +    "place",
      +    "time",
      +    "finish",
      +    "training",
      +    ""
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / sport
      Added value: +{
      +  "description": "what the race is (the Course tab reads a run without watts); unset = guessed from the name",
      +  "enum": [
      +    "ride",
      +    "run"
      +  ],
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / startTime
      Added value: +{
      +  "description": "local start time HH:MM",
      +  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • addedInput schema / properties / priority
      Added value: +{
      +  "description": "A = season goal, B/C = on the way, '' clears",
      +  "enum": [
      +    "A",
      +    "B",
      +    "C",
      +    ""
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / target
      Added value: +{
      +  "description": "their aim, e.g. 'sub-40'",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  8. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (write, non-destructive, closed-world), it discloses behavior an agent could not infer: the GPX route cannot be set here, event-day weather is fetched automatically within roughly 16 days, startTime plus confirmed-slot status drive which forecast hours are used, and the response is the new event id. That return-value note is especially valuable given no output schema.

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-loaded with purpose, then trigger, then required inputs and the multi-day rule, then optional fields — a sensible order. The mid-paragraph enumeration of optional fields partly repeats the schema and adds bulk, but no sentence is genuinely wasted.

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 16-parameter creation tool with no output schema, it covers the essentials: required inputs, date format, the multi-day modeling rule, side effects (weather fetch), what the tool will not do (GPX), and what it returns. An agent has enough to call this correctly without opening the schema.

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?

Schema coverage is already 81%, so the schema carries most parameter meaning; the description adds relationships the schema does not, notably that startTime and the confirmed-slot flag select the forecast hours, and that endDate is the inclusive last day of a single multi-day event. It adds little about the less obvious optional fields (mapUrl, eventUrl, coachNotes vs notes), which the schema already handles.

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 plus resource — 'Create an event the athlete is preparing for (race, key ride, FTP test) on their Blocks calendar' — and the examples make the intended object concrete. It also delimits scope against adjacent operations by stating the GPX route is added in the app and that detailed prep goes through set_event_notes, so an agent can distinguish it from update_event-style siblings.

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 an explicit trigger ('Use when the athlete describes one in chat') and an important negative rule for multi-day races: one event with date/endDate, 'never one event per day'. It also routes follow-up work to set_event_notes. The one missing piece is guidance for when an event already exists and update_event should be used instead of create.

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