Skip to main content
Glama

Change a class RSVP

set_class_rsvp
DestructiveIdempotent

Cancel or change the member's or a linked child's RSVP for one class, including rebooking a previously cancelled RSVP. This can move the waitlist. Never without the user's confirmation. Returns the authoritative status and any waitlist position.

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": {
      "branch_id": "<branch_id>",
      "occurrence_key": "<occurrence_key>",
      "status": "<status>"
    },
    "name": "set_class_rsvp"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYesRequested RSVP: attending or cancelled. Call only after the user confirms.
child_idNoOptional linked child's subject_id from list_my_subjects; omit for the signed-in member.
branch_idYesClub UUID from the member's list_my_subjects result; access is checked for this club.
occurrence_keyYesExact class occurrence key returned by the public or member class schedule.

Output Schema

NameRequiredDescriptionDefault
statusYes
branch_idYes
subject_idYes
waitlistedYes
occurrence_keyYes
waitlist_positionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / branch_id / description
      Added value: +"Club UUID from the member's list_my_subjects result; access is checked for this club."
    • addedInput schema / properties / child_id / description
      Added value: +"Optional linked child's subject_id from list_my_subjects; omit for the signed-in member."
    • addedInput schema / properties / occurrence_key / description
      Added value: +"Exact class occurrence key returned by the public or member class schedule."
    • addedInput schema / properties / status / description
      Added value: +"Requested RSVP: attending or cancelled. Call only after the user confirms."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "branch_id": {
      +      "title": "Branch Id",
      +      "type": "string"
      +    },
      +    "occurrence_key": {
      +      "title": "Occurrence Key",
      +      "type": "string"
      +    },
      +    "status": {
      +      "title": "Status",
      +      "type": "string"
      +    },
      +    "subject_id": {
      +      "title": "Subject Id",
      +      "type": "string"
      +    },
      +    "waitlist_position": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Waitlist Position"
      +    },
      +    "waitlisted": {
      +      "title": "Waitlisted",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "branch_id",
      +    "subject_id",
      +    "occurrence_key",
      +    "status",
      +    "waitlisted"
      +  ],
      +  "title": "Rsvp",
      +  "type": "object"
      +}
  2. First observed

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 and idempotentHint=true, but the description adds real value beyond that: the waitlist side effect, the hard confirmation gate, and the fact that the result is the authoritative status rather than a cached guess. It does not cover failure modes such as a full class or an invalid occurrence key.

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 description is four short sentences with the action and scope front-loaded ahead of the safety constraint. The closing sentence on return values is largely redundant with the existing output schema.

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 destructive mutation, this covers what an agent needs: scope, required confirmation, the waitlist consequence, and trust in the returned status. Annotations and the output schema carry the remaining safety and return-value 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 coverage is 100%, so every parameter is already documented, and each one carries a constraint including a confirmation gate on status. The description only echoes the member-vs-child scope and the per-class targeting, adding little syntax or semantics beyond the schema.

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 gives a specific verb set (cancel, change, rebook) and resource (a class RSVP for the member or a linked child). It also carves out scope that separates it from book_class_rsvp by covering the rebooking of a previously cancelled RSVP.

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?

It explicitly states a precondition — never call without the user's confirmation — and warns that the call can move the waitlist, which tells the agent when caution is needed. It stops short of naming book_class_rsvp as the alternative for new bookings, so routing is implied rather than spelled out.

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