Book with credits
book_sessionFor 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
| Name | Required | Description | Default |
|---|---|---|---|
| places | No | ||
| credits | No | ||
| approval | No | The 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. | |
| sessionId | Yes | ||
| idempotencyKey | No | Any unique string per intended action. A retry with the same key answers with the first result and never acts twice. |