Skip to main content
Glama

Book a space

book_space

Book a pitch, court or hall for a real person — check_space_availability first. The venue prices and checks it exactly as it does on its own page. If the space's bookingMode is "instant", the time is held for the person for a few minutes and the result carries a paymentLink: give it to them to pay, and the booking is confirmed when they do (if they don't, the time is released). If it is "request", the venue is asked and the person is sent a payment link once it accepts. This tool never takes payment itself.

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": {
      "restaurantId": "<restaurantId>",
      "spaceId": "<spaceId>",
      "date": "<date>",
      "startTime": "<startTime>",
      "hours": "<hours>",
      "guestName": "<guestName>",
      "guestPhone": "<guestPhone>"
    },
    "name": "book_space"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD, the venue's local date
hoursYesHow long. Per-session spaces are one price whatever the length
peopleNo
spaceIdYes
guestNameYes
startTimeYesHH:MM from check_space_availability's freeStartTimes
guestEmailNo
guestPhoneYes
restaurantIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say it is a non-read-only, non-idempotent, non-destructive write; the description adds substantial context beyond that — temporary hold with expiry in instant mode, venue-side acceptance in request mode, and a returned paymentLink whose use is spelled out. The main gap is retry semantics: idempotentHint=false means a re-submission could double-book, yet nothing warns about retrying after a timeout or a lost response.

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?

Front-loaded with the action and the prerequisite, then the two mode branches, with no filler sentences. The nested conditionals make individual sentences long and require careful reading, but every clause carries operational information.

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, non-idempotent booking mutation with no output schema, the description covers the lifecycle — hold, payment link, confirmation, release, request-and-accept — which is exactly the return-value information an agent lacks otherwise. It falls short only on parameter coverage and duplicate-booking risk on retry.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: date, hours and startTime are documented, while spaceId, restaurantId, guestName, guestPhone, guestEmail and people carry no description anywhere. The prose adds no meaning to any parameter — the only parameter-adjacent guidance (use freeStartTimes from check_space_availability) is already in the schema. With six undocumented inputs, the description should have compensated and does not.

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?

States a specific verb and resource ("Book a pitch, court or hall") and immediately scopes it to "for a real person," which separates it from the sibling booking tools (book_reservation, book_room, book_service) by naming the space types it handles. An agent can identify the right tool from the first clause alone.

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?

Gives an explicit prerequisite ("check_space_availability first") and then branches usage on the venue's bookingMode, telling the agent what to expect and what to do with the result in each case. The exclusions are clear: the agent is told this tool never takes payment, so get_payment_link-style follow-ups are implied.

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