Skip to main content
Glama

Bookafy MCP by usefulapi

Get class with sessions and attendees

bookafy_get_class
Read-only

One class with its sessions and the attendees booked on each (name, email, phone, booking time). Optional filters narrow the sessions. GET /api/v3/classes/{id}.

Input Schema

NameRequiredDescriptionDefault
toNoOnly sessions ending before this moment (yyyy-mm-dd or ISO 8601 date-time with timezone).
fromNoOnly sessions starting at or after this moment (yyyy-mm-dd or ISO 8601 date-time with timezone).
priceNoOnly sessions with this price.
class_idYesClass id (from bookafy_list_classes).
durationNoOnly sessions of this length in minutes.
attendee_nameNoOnly sessions with an attendee of this name.
provider_nameNoOnly sessions run by this provider.

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 readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds real behavioral context beyond that: the optional filters narrow sessions rather than the class itself, and the response carries attendee PII (name, email, phone, booking time).

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?

Two compact sentences front-load what the tool returns, followed by the filter behavior and the HTTP path. Every element is short and earns its place, with no filler.

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?

With no output schema, the description usefully enumerates the returned payload shape (sessions plus attendee name/email/phone/booking time). The filter and required-id semantics are covered, so an agent can call this correctly; only the empty-result or not-found behavior is left implicit.

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 including the from/to/price/duration/attendee_name/provider_name filters is already documented with bounds and formats. The description's only addition is that filters scope sessions, which the schema also states; baseline 3 applies.

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?

States a specific resource and scope: a single class with its sessions and the attendees booked on each, including the attendee fields returned. That distinguishes it from bookafy_list_classes (plural listing), though it never names the sibling explicitly.

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 singular-resource framing and the required class_id imply this is the detail-fetch for a class already known, versus the list tools. However, there is no explicit when-to-use statement and no guidance on when to prefer it over bookafy_list_session_attendees, which covers overlapping data.

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.