Skip to main content
Glama

Book a class

book_class

Books a class at one of the signed-in member's gyms with their own membership (or puts them on the waitlist when full, if the gym allows). Uses the gym's booking rules. No payment is taken here. The answer includes the gym's address and maps link. Each gym includes, when Gymmy has it: full address, city, country, coordinates (geo), mapsUrl (Google Maps), directionsUrl, appleMapsUrl, logoUrl (the salle logo or a sourced photo, null when there is none), listingUrl (public page, null when the gym is not public), phone, public email, website and opening hours, and null for anything Gymmy does not have. gym, classId and memberId are internal ids, used as arguments of other Gymmy tools.

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_id": "<class_id>",
      "date": "<date>"
    },
    "name": "book_class"
  }
}

Input Schema

NameRequiredDescriptionDefault
gymNoGym id from my_schedule or get_my_account. Optional: found from the class when the person belongs to several gyms.
dateYesClass date (YYYY-MM-DD).
localeNoAnswer language: fr (default), en, pt, es or de. Pass en when the person writes in English.
class_idYesClass id from my_schedule (classId).

Output Schema

NameRequiredDescriptionDefault
gymNoA gym. `gym` is its internal id, used as an argument of other Gymmy tools.
kindYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / class_id / description
      Previous value: -"Class id from my_schedule structured content. Do not show it to the user."New value: +"Class id from my_schedule (classId)."
    • changedInput schema / properties / gym / description
      Previous value: -"Gym id from my_schedule or get_my_account. Do not show it to the user. Optional: found from the class when the person belongs to several gyms."New value: +"Gym id from my_schedule or get_my_account. Optional: found from the class when the person belongs to several gyms."
    • changedOutput schema / properties / gym / description
      Previous value: -"A gym. `gym` is the internal id for the next tool call. Do not show it to the user."New value: +"A gym. `gym` is its internal id, used as an argument of other Gymmy tools."
  2. Changed1 schema field changed
    • addedOutput schema / properties / gym / properties / styles
      Added value: +{
      +  "description": "Yoga or pilates style ids (bikram, vinyasa, hatha, yin, reformer, lagree, …). The discipline stays in activities.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / class_id / description
      Previous value: -"Class id (from my_schedule)."New value: +"Class id from my_schedule structured content. Do not show it to the user."
    • changedInput schema / properties / gym / description
      Previous value: -"Gym id (from my_schedule or my_gyms). Optional: found from the class when you belong to several gyms."New value: +"Gym id from my_schedule or get_my_account. Do not show it to the user. Optional: found from the class when the person belongs to several gyms."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "gym": {
      +      "description": "A gym. `gym` is the internal id for the next tool call. Do not show it to the user.",
      +      "properties": {
      +        "address": {
      +          "description": "Full postal address (street, postcode, city, country). Null when unknown.",
      +          "type": "string"
      +        },
      +        "appleMapsUrl": {
      +          "description": "Apple Maps URL for the same place.",
      +          "type": "string"
      +        },
      +        "city": {
      +          "type": "string"
      +        },
      +        "country": {
      +          "description": "Country, ISO alpha-2 when the gym stored one (FR, PT…).",
      +          "type": "string"
      +        },
      +        "directionsUrl": {
      +          "description": "Google Maps directions URL to the gym.",
      +          "type": "string"
      +        },
      +        "email": {
      +          "description": "Public contact email of the gym. Not a member email.",
      +          "type": "string"
      +        },
      +        "geo": {
      +          "description": "Coordinates when known.",
      +          "properties": {
      +            "lat": {
      +              "type": "number"
      +            },
      +            "lng": {
      +              "type": "number"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "gym": {
      +          "type": "string"
      +        },
      +        "listingUrl": {
      +          "description": "Public listing or published gym page. Null when the gym is not public.",
      +          "type": "string"
      +        },
      +        "logoUrl": {
      +          "description": "Salle logo or sourced photo. Null when the gym has none. Never invent one.",
      +          "type": "string"
      +        },
      +        "mapsUrl": {
      +          "description": "Google Maps search URL built from coordinates, or from the address.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "openingHours": {
      +          "description": "Opening hours in one line, when known.",
      +          "type": "string"
      +        },
      +        "openingHoursLines": {
      +          "items": {
      +            "properties": {
      +              "label": {
      +                "type": "string"
      +              },
      +              "value": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "phone": {
      +          "description": "Public phone. Null when the gym has not published one.",
      +          "type": "string"
      +        },
      +        "postalCode": {
      +          "type": "string"
      +        },
      +        "street": {
      +          "type": "string"
      +        },
      +        "website": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "kind": {
      +      "const": "booking"
      +    }
      +  },
      +  "required": [
      +    "kind"
      +  ],
      +  "type": "object"
      +}
  4. 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"
      +]
  5. 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."
  6. Changed1 schema field changed
    • changedInput schema / properties / gym / description
      Previous value: -"Gymmy gym id (from my_gyms). Needed only if you belong to several gyms."New value: +"Gym id (from my_schedule or my_gyms). Optional: found from the class when you belong to several gyms."
  7. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false) it discloses waitlist behavior, reliance on the gym's booking rules, and that no payment is taken. However, given idempotentHint=false, it never warns that repeat calls may create duplicate bookings, and it does not say what happens on failure when a class is full and waitlisting is disallowed.

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 opening sentence is front-loaded and efficient, but the second half is a long enumeration of every gym field (address, coordinates, mapsUrl, logoUrl, listingUrl, phone, email, hours, nulls) that duplicates the output schema and does not help an agent decide or call the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the return-value enumeration is unnecessary and the description would be better spent on failure modes and duplicate-booking risk. The core booking semantics are covered, so it is adequate but leaves real gaps for a mutation tool.

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 gym, date, locale and class_id are already fully documented, and the description adds only that the ids are 'internal ids, used as arguments of other Gymmy tools'. It also mentions memberId, which is not a parameter at all, adding mild confusion rather than semantic value.

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 specific verb and resource ('Books a class'), scopes it to 'one of the signed-in member's gyms with their own membership', and describes the waitlist fallback. It implicitly separates itself from a drop-in booking by the 'own membership' qualifier, but never names a sibling tool to make the distinction explicit.

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?

Clear context for when to use it (member booking at their own gym, waitlisted when the gym allows) and a useful exclusion that 'No payment is taken here', which points an agent elsewhere for payment flows. It stops short of naming alternatives or stating what to do when the class is full and the gym does not allow waitlists.

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.