Skip to main content
Glama

Northlight Yoga

book_with_membership

Idempotent

Optional signed-in member alternative (OAuth scope bookings:write, Poppy operations v3) for studio members redeeming an active class pack or monthly membership. Use it when a signed-in member wants to spend a credit; for guests without an account, use create_booking instead. Required fields: event_type_id, start_ms. Optional: attendee_timezone, hold_id, notes, responses, idempotency_key. Example: {"event_type_id":"evt_beginners","start_ms":"1795858200000"}. Returns { booking, manage_url, manage_token, membership_billing }.

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": {
      "event_type_id": "<event_type_id>",
      "start_ms": "<start_ms>"
    },
    "name": "book_with_membership"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNooptional note for the teacher
hold_idNooptional prior hold id
start_msYesthe slot start as epoch milliseconds, in a decimal string, from list_slots
responsesNooptional map of answers to the class's booking questions (from list_event_types.questions)
event_type_idYesclass id or slug
idempotency_keyNooptional retry key (24-120 chars)
attendee_timezoneNooptional IANA timezone

Output Schema

NameRequiredDescriptionDefault
bookingYesOne booking.
idempotentYesWhether this was a replay of an earlier admission.
manage_urlNo
manage_pathNo
manage_tokenNo
attendee_startNo
manage_endpointNo
manage_withheldNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the required OAuth scope (`bookings:write`), the membership precondition, and the exact return tuple including `manage_url` and `membership_billing`. It stops short of describing side effects such as credit deduction failure modes or capacity errors, which would be useful for a mutation tool, but the annotation set already covers safety and idempotency.

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 definition is front-loaded: purpose and alternative come first, followed by required/optional fields and an example. The internal tag 'Poppy operations v3' is not obviously useful to an agent, but the rest is tight and earns its place.

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 seven-parameter mutation with an output schema and annotations, the description covers the audience, auth scope, required fields, and return shape. It could say more about what happens when the member has no eligible credits, but the output schema and annotations reduce the burden enough that the definition is nearly complete.

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 the per-parameter descriptions already carry the semantics. The description reiterates which fields are required versus optional and provides a compact example, but adds no meaning beyond the schema's own descriptions of `start_ms`, `responses`, and `hold_id`.

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

Purpose5/5

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

The description states a specific verb and resource — booking a class by redeeming an active class pack or monthly membership — and explicitly distinguishes itself from `create_booking` for guests. An agent can identify the operation and its audience without opening either schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance ('signed-in member wants to spend a credit') and names the alternative tool with its condition ('guests without an account, use create_booking instead'). The exclusion is clear and actionable.

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