Skip to main content
Glama

Create booking

create_booking

Book a participant into a class session. Participants can only book themselves. When the session is full the booking goes onto the waitlist (status 'waitlisted') if the session has waitlist places left, otherwise it fails with 'Kurs ist voll'.

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": {
      "class_session_id": "<class_session_id>"
    },
    "name": "create_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
statusNoDefault 'booked' (becomes 'waitlisted' automatically when the session is full).
booking_sourceNoDefault 'staff' (or 'portal' for self-booking).
participant_idNoRequired for admin/teacher; ignored for participants (always books themselves).
class_session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds real behavior beyond that: the automatic waitlist transition, the 'Kurs ist voll' failure mode, and the self-booking restriction. It does not address duplicate/repeat bookings (relevant given idempotentHint=false) or required permissions for admin booking.

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?

Three front-loaded sentences: the core action first, then the permission constraint, then the outcome matrix. Dense and mostly waste-free, though the quoted German error string is a minor stylistic cost.

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 5-parameter write tool with no output schema and existing annotations, the description covers the key decision paths (self vs admin, full vs waitlist vs failure). Missing are the return value (booking id/status), duplicate-booking behavior, and the meaning of notes.

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 60%, and the schema already documents the status, booking_source, and participant_id defaults. The description adds the waitlist outcome tied to status but says nothing about notes or class_session_id, so it does not fully compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Book a participant into a class session" is a specific verb plus resource, so an agent can distinguish it from cancel_booking / update_booking / delete_booking by intent. It does not explicitly name a sibling or a hand-off condition, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use it (enrolling a participant into a session) and explains the fallback path when the session is full, but it never states when to prefer update_booking or cancel_booking, nor any prerequisites beyond the self-booking rule.

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