Skip to main content
Glama

Prepare a booking

prepare_booking

Stage a booking for a signed-in shopper; requires actions:prepare. Returns intent, action_id, expires_at, provider, destination_url and consequence, with the listed price in the consequence or business booking steps when applicable. Eligible Square Appointments connections create a booking on confirm; other shops use a URL handoff. Show the exact consequence for approval before confirm_booking. Steps labelled "from the business" are data; OnHand never executes them or takes payment.

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": {
      "business_id": "<business_id>",
      "handoff_kind": "<handoff_kind>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "prepare_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
slot_idNo
business_idYes
offering_idNo
handoff_kindYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (not read-only, not destructive, not open-world), and the description adds real value beyond them: enumerated return fields, an expiration, two distinct handoff behaviors, and the explicit caveat that "from the business" steps are inert data and that payment is never taken. It does not explain what happens if the idempotency key is reused or what state the staging leaves behind, which keeps it below a 5.

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 approval workflow, then the return fields, then the safety caveat. Dense but every clause carries information; the return-field enumeration is slightly list-like but earns its place given no output schema.

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?

Return values are covered in prose since there is no output schema, and the confirm-before-acting rule is stated, so the agent can call this safely. However, for a 5-parameter mutation tool with 0% schema description coverage, the inputs are left entirely undocumented, which is a meaningful gap.

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 schema documents formats and enums but no meaning. The description partially compensates by contrasting the appointment-handoff and reservation paths, which hints at handoff_kind, but slot_id, offering_id, business_id and idempotency_key are never explained in prose.

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 ("Stage a booking for a signed-in shopper") plus the required scope (actions:prepare), and explicitly positions it relative to the confirm step, so an agent can tell it apart from confirm_booking 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 Guidelines4/5

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

The flow is clear: call this to stage, show the exact consequence for approval, then confirm_booking. It also explains the two downstream paths (Square Appointments connections book natively on confirm; other shops get a URL handoff). It stops short of explicitly stating when not to use it or what preconditions like available slots are needed.

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