Skip to main content
Glama

Embodier Rails — Direct Booking for AI Agents

Create a booking (approval-gated)

create_booking
Idempotent

Create a booking from a quote id. Requires a caller token AND a single-use human approval token (contract §5.4).

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": {
      "quote_id": "<quote_id>",
      "idempotency_key": "<idempotency_key>",
      "guest": "<guest>",
      "approval": "<approval>"
    },
    "name": "create_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
guestYes
approvalYes
quote_idYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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, idempotent, non-destructive), and the description adds genuinely new operational context: a caller token is needed and a single-use human approval token is mandatory, with a contract citation for the policy. It stops short of describing side effects on success/failure or what the approval token's single-use nature means for retries.

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

Conciseness5/5

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

Two short sentences with zero filler; the prerequisite and its approval-gating constraint are front-loaded right after the action statement. Nothing is repeated from the title beyond what is needed to anchor the sentence.

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?

For a four-parameter mutation with a nested guest object, no output schema, and 0% schema coverage, the definition covers the approval path well but leaves the guest payload, idempotency behavior, and post-call result undocumented. An agent can select the tool, but not confidently construct a full correct invocation.

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 description coverage is 0%, so the description must carry parameter meaning, and it only glosses two of four required parameters: quote_id (implied) and approval (the single-use token requirement). It says nothing about idempotency_key, whose semantics for a mutation tool are critical, and nothing about the nested guest object shipped with the request.

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 and resource ('Create a booking') and pins the input origin ('from a quote id'), which cleanly separates it from sibling reads like get_booking and get_quote. It does not explicitly contrast itself with those siblings, but the operation type is unambiguous.

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?

Usage is implied rather than stated: you create a booking when you hold a quote id, and the description makes clear the action is approval-gated. There is no explicit when-not-to-use guidance or named alternative for related flows, so the agent must infer routing.

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