Skip to main content
Glama

Leave an event

leave_event

Gives up a guest’s spot or their place on the waitlist, or takes back their ask to join, with the id and token join_event gave. A spot goes to the first person on the waitlist at once, so it can’t be taken back: to come after all, join again (join_event), at the end of the line. Works until the event starts (409 event_over after that, and 409 event_cancelled for a cancelled event). Leaving twice changes nothing. Ask the person before calling it.

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>",
      "token": "<token>"
    },
    "name": "leave_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesa guest id ("gst_…"): from get_event for a host, or the one join_event gave the guest
tokenYesthe guest’s token: `token` from join_event, or the `token` in their link (".../e/<slug>?guest=<id>&token=<token>")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses behavior the agent could not otherwise infer: the promoted waitlister is notified at once, the action is irreversible in effect, repeated calls are no-ops, and specific HTTP error codes mark the time and cancellation boundaries. The only tension is that destructiveHint=false reads mildly at odds with 'it can't be taken back', but the record itself isn't destroyed and the operation is idempotent, so this is a nuance rather than a contradiction.

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 consequence and irreversibility are front-loaded ahead of the timing and error caveats, which is the right order. A few clauses ('to come after all', 'at the end of the line') are wordier than necessary, but every sentence carries distinct information.

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 two-parameter tool with no output schema, the description covers reversibility, timing, error codes, idempotency, and a social precondition. The one gap is what the call returns on success, which matters since there is no output schema to fall back on.

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 coverage is 100%, and both parameters already document their provenance and format in the schema. The description only restates that the credentials come from join_event, adding no syntax, constraint, or failure-mode detail beyond what the structured fields carry, so the baseline 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?

The description opens with a specific verb and scope: giving up a spot, a waitlist place, or retracting a join request, keyed by the `id` and `token` that join_event produced. That framing makes it clearly distinct from join_event and join_waitlist without needing their schemas.

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?

It states when the tool works (until the event starts), what happens past that boundary (409 event_over, 409 event_cancelled), the explicit alternative for reversing course ('join again (join_event), at the end of the line'), and a precondition ('Ask the person before calling it'). This is a near-complete when/when-not/alternative map.

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