Skip to main content
Glama
Huppa MCP Server

Huppa MCP Server

by maxzw

book_class

Books a gym class occurrence by its organization and occurrence IDs and returns the booking response when available.

Instructions

Book a gym class occurrence.

Args:
    organization_id: Organization identifier from ``get_classes``.
    occurrence_id: Class occurrence identifier from ``get_classes``.

Returns:
    Booking response payload when present, otherwise ``None``.

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

Input Schema

NameRequiredDescriptionDefault
occurrence_idYes
organization_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about side effects, idempotency, capacity failures, or cancellation policy. Only the return shape is hinted at ("Booking response payload when present, otherwise ``None``"), which leaves an agent unable to predict failure modes for a mutation.

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 short and front-loaded with the action, followed by a compact Args/Returns block that is easy to scan. The docstring formatting is slightly verbose for two parameters but nothing is wasteful.

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

Completeness2/5

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

For an unannotated mutation tool, the definition omits the essentials: permissions, side effects, what happens on a full or already-booked class, and the waitlist alternative. The existing output schema covers return values, but the pre-call behavioral picture remains thin.

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 0%, so the bare titles "Organization Id" and "Occurrence Id" would otherwise be opaque. The description does add real value by tracing both IDs back to get_classes, giving provenance, but it provides no format, validation, or cross-parameter constraints.

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 gym class occurrence" states a specific verb and resource, which is unambiguous on its own. It does not, however, distinguish itself from siblings such as join_waitlist or cancel_booking, so the agent gets no explicit contrast.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus join_waitlist (e.g., when a class is full) or what preconditions must hold, such as an existing membership or an open booking window. The agent must infer the routing decision from sibling names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.