Skip to main content
Glama

Book a class

book_class

Book a place in a class for the signed-in person, by its id from get_club’s classes, only after they have agreed to that class, time and price. A full class cannot be booked: offer join_waitlist instead. It books exactly as 1club.me does: a membership of theirs that covers it is used, otherwise it is paid at the club. The answer gives the booking’s status and how it is covered, as created. A club that requires paying online when booking cannot be booked this way: the error says so.

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": {
      "classId": "<classId>"
    },
    "name": "book_class"
  }
}

Input Schema

NameRequiredDescriptionDefault
classIdYesThe class’s `id` from get_club.
seatCountNoHow many places, when the person is bringing others. Defaults to 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag the operation as a non-read-only, non-destructive, non-idempotent, open-world write. The description adds genuinely new behavior: coverage resolution (a covering membership is used, otherwise paid at the club), what the response reports (status and coverage "as created"), and a named error condition for online-payment clubs. Nothing contradicts the annotations.

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 the core action and identifier source, then prerequisites, then failure alternatives, then side effects. Dense but each sentence carries information; the "It books exactly as 1club.me does" framing is slightly redundant packaging around otherwise necessary detail.

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?

Although there is no output schema, the description explains what the response contains (booking status and how it is covered). With two fully documented parameters and a clear precondition/alternative/error model, an agent has everything needed to call it correctly or route elsewhere.

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 both `classId` and `seatCount` are already documented, including the default of 1 and the 20-place maximum. The description only reinforces where the id comes from and hints at group booking ("bringing others"), which is already in the schema. Baseline 3 applies since 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 and resource ("Book a place in a class") plus the actor ("the signed-in person") and the identifier source ("`id` from get_club's `classes`"). That is enough to distinguish it from book_area, book_instructor, and join_waitlist without opening any schema.

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?

Gives an explicit precondition (only after the person has agreed to that class, time and price), an explicit alternative for the failure case ("A full class cannot be booked: offer join_waitlist instead"), and an explicit exclusion (clubs requiring online payment on booking). All three when/when-not/alternative elements are present.

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