Skip to main content
Glama

Quick book, signed out

quick_book
Idempotent

For a personal AI agent whose person has not signed in: book one place. sub is your stable id for the person; the same sub is the same guest at HOTDROP. agentName is your app's name, shown to staff. givenName and familyName are required: the desk checks the guest in by name, as for ClassPass, so ask the person in the chat. email is optional: the desk confirms it on arrival, nothing is sent to it. Two ways to pay. You pay (agentPays: true): once the person approves the price, your own platform wallet issues you a Stripe shared payment token (spt_) for totalMinor GBP, and you send the same call with the approval and paymentToken: it charges the token and returns state booked. If your platform cannot issue one, use the pay link; never ask the person to paste a token. Or the person pays: it returns state awaiting_payment, booked false, payUrl for them to pay and statusToken to read it; the place is held, not booked, until they pay by payBy. Either way the person never leaves the chat: the desk checks the guest in by name and has the waiver signed on arrival. Offer sign-in first: a signed-in person books with credits.

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": {
      "sessionId": "<sessionId>",
      "sub": "<sub>",
      "givenName": "<givenName>",
      "familyName": "<familyName>"
    },
    "name": "quick_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
subYes
emailNo
creditsNo
approvalNoThe approval of the operation this tool returned with approval_required: { operation_id, revision, approver: "user" }, all three required; only the person approves. Call once without it, show operation.summary to the person, then call again with structuredContent.approval as it came.
agentNameNo
agentPaysNo
givenNameYes
sessionIdYes
familyNameYes
paymentTokenNo
idempotencyKeyNoAny unique string per intended action. A retry with the same key answers with the first result and never acts twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that agentPays charges the token and returns state booked, that the person-pays path returns awaiting_payment/booked false with payUrl and statusToken, and that the place is only held until payBy. It also notes no email is sent and that the desk checks the guest in by name with the waiver signed on arrival. The only gap is the approval round-trip, which is described in the schema rather than the description.

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-loads purpose and audience, then flows from identity to payment to outcome with no filler sentences. It is dense and packs a lot into one block, and the closing reassurance about the person never leaving the chat partially restates the waiver/check-in point already made, costing a little economy.

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?

No output schema exists, so describing the returned states (booked, awaiting_payment, payUrl, statusToken) is genuinely necessary and supplied here. For an 11-parameter booking tool with a nested approval object, the only missing piece an agent needs is guidance on sessionId and the credits parameter.

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

Parameters4/5

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

Schema description coverage is only 18%, so the description must carry the load, and it does for most parameters: sub as the guest identity, agentName as the app name shown to staff, givenName/familyName as required by the desk, email as optional and unused for sending, plus agentPays and the spt_ paymentToken flow. It leaves the required sessionId and the credits parameter unexplained, which is a real gap given the low schema coverage.

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 one place') and immediately scopes it to the audience: a personal AI agent whose person has not signed in. The closing line 'Offer sign-in first: a signed-in person books with credits' implicitly routes to the signed-in sibling, so an agent can pick the right tool 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?

Explicitly says when this tool applies (person not signed in) and when it does not ('Offer sign-in first'), then lays out the two payment paths and the condition that selects each. It also gives the fallback rule when the platform cannot issue a token, and forbids the anti-pattern of asking the person to paste a token.

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