Skip to main content
Glama

Book with credits

book_session
Idempotent

For a signed-in personal AI agent: book a session with the person's credits, now. credits picks the length on a session sold in several lengths. Fails in words when they have too few credits or it is full. Free cancellation until the session's freeCancellationUntil.

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>"
    },
    "name": "book_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
placesNo
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.
sessionIdYes
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

B3/5.0
Behavior3/5

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

Annotations declare non-readonly, idempotent, non-destructive. Description adds failure modes and cancellation policy, useful. But omits the approval flow behavior, which is significant given the nested approval object; schema carries it though. Also doesn't disclose whether booking can be reverted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Short but the opening clause 'For a signed-in personal AI agent' is oddly phrased, and 'Fails in words' is vague jargon. Sentences are choppy yet front-loaded with purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

High-complexity tool: 5 params, nested approval object, no output schema. Description omits the two-call approval flow, the meaning of places, and any return value shape, leaving critical gaps for a mutation tool.

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 40%. Description explains credits picks session length, which is real value. But places, approval, and idempotencyKey are not explained in the description at all; the approval and idempotency descriptions live in the schema. For a 5-param tool with nested approval object, description doesn't compensate.

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 verb+resource: 'book a session' with the person's credits. Clarifies the credits parameter selects length among several lengths. Doesn't distinguish from quick_book/quick_book siblings explicitly, though 'now' hints.

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?

Says 'For a signed-in personal AI agent' and 'now', and notes free cancellation window. Doesn't say when to use this vs quick_book or get_quick_book, which are obvious siblings. Failure modes mentioned (too few credits, full) but no routing guidance.

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