Skip to main content
Glama

Buy and book a class

book_dropin

Buys a trial, a single class or a class pack at a Gymmy gym and books the class in one go, for the signed-in person (any Gymmy account, no membership needed). Without confirm: returns a summary (price, class) and charges nothing. With confirm: true, first_name and last_name: returns a Stripe Checkout link on the gym's own account (the spot is held 30 min), or books right away when free. checkout_status reports the payment. Nothing is charged by this tool.

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": {
      "gym": "<gym>"
    },
    "name": "book_dropin"
  }
}

Input Schema

NameRequiredDescriptionDefault
gymYesGymmy gym id (from search_classes).
dateNoClass date (YYYY-MM-DD).
localeNoAnswer language: fr (default), en, pt, es or de. Pass en when the person writes in English.
confirmNotrue only after the person said yes to the summary returned by the first call.
site_idNoSite id when the gym has several.
class_idNoClass id (from search_classes). Optional with a class pack.
offer_idNoOffer id (from search_classes offers). Default: the cheapest single entry.
last_nameNoThe person's last name (needed with confirm).
first_nameNoThe person's first name (asked once, needed with confirm).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / locale / description
      Previous value: -"Answer language: fr (default) or en. Pass en when the person writes in English."New value: +"Answer language: fr (default), en, pt, es or de. Pass en when the person writes in English."
    • changedInput schema / properties / locale / enum
      Previous value: -[
      -  "fr",
      -  "en"
      -]New value: +[
      +  "fr",
      +  "en",
      +  "pt",
      +  "es",
      +  "de"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / locale / description
      Previous value: -"Answer language. Default fr."New value: +"Answer language: fr (default) or en. Pass en when the person writes in English."
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), the description discloses the real behavioral traits: nothing is charged in the non-confirm path, a 30-minute hold is placed on the spot, payment runs through a Stripe Checkout link on the gym's own account, and free bookings are confirmed immediately. The clarification that the tool itself never charges resolves the tension with the word 'buys'.

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?

It is a compact, front-loaded paragraph where every clause carries information (scope, preview mode, commit mode, follow-up). Readability suffers slightly from the dense mid-sentence jump to 'With confirm: true, first_name and last_name', which could be broken into a clearer list of the two modes.

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 9-parameter, two-mode purchase tool with no output schema, the description covers both call paths, the 30-minute hold, the payment handoff, and where to check status. Minor gaps remain: it does not describe failure cases (e.g., spot taken, checkout abandoned, expired hold) or what exactly the summary contains beyond price and class.

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 description coverage is 100%, so every parameter is already documented, including the confirm/first_name/last_name dependency and the offer_id default. The description mostly restates this and adds no format, ordering, or edge-case meaning for gym, date, site_id, class_id, or the locale enum.

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?

The first sentence gives a concrete verb and resource: it buys a trial/single class/pack AND books the class in one go, scoped to the signed-in person with no membership required. That is specific enough to act on, but it never names the sibling book_class (book-only) or start_trial, so the boundary against those tools is left to inference.

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?

The two-step flow is spelled out clearly: call without confirm to get a price/class summary with no charge, then call again with confirm=true plus first_name/last_name only after the person agrees. It also notes that checkout_status reports payment, giving the follow-up path. It stops short of explicit when-not-to-use guidance or naming an alternative tool.

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.