Skip to main content
Glama

Batch Book Shipments

batch_book
Destructive

Book MANY already-quoted lanes in ONE call (sequential, one card charge per row). Use this after batch_quote when the user says "book all of them" or "book rows 1, 3, 5" — do NOT call book in a loop. Each row needs a quote_id (the same one batch_quote returned for that row). Pickup/delivery default to the shared addresses at the top level so a single warehouse → many destinations only needs one address pair. Returns a progress card showing per-row Booked/Failed status with tracking numbers.

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": {
      "bookings": "<bookings>"
    },
    "name": "batch_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookingsYesArray of bookings to confirm (1-25). Each is one freight shipment, one card charge.
shared_notesNoNotes applied to every row without their own.
shared_pickupNoPickup address applied to every row that doesn't supply its own (FBA case: one warehouse → many destinations).
shared_deliveryNoDelivery address (all fields incl. contact phone and email) applied to every row that doesn't supply its own. Uncommon (usually each row goes somewhere different).
shared_referenceNoReference applied to every row without its own.
shared_accessorialsNo
shared_pickup_windowNo
shared_delivery_windowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / bookings / items / properties / delivery / description
      Previous value: -"Per-row delivery. Omit to inherit from shared_delivery."New value: +"Per-row delivery (all fields incl. contact phone and email). Omit to inherit from shared_delivery; one of the two is required."
    • addedInput schema / properties / bookings / items / properties / delivery / properties / email / description
      Added value: +"Delivery contact email. Required by Warp on every booking."
    • changedInput schema / properties / bookings / items / properties / delivery / required
      Previous value: -[
      -  "zipCode",
      -  "city",
      -  "state",
      -  "street",
      -  "contactName",
      -  "phone"
      -]New value: +[
      +  "zipCode",
      +  "city",
      +  "state",
      +  "street",
      +  "contactName",
      +  "phone",
      +  "email"
      +]
    • changedInput schema / properties / shared_delivery / description
      Previous value: -"Delivery address applied to every row that doesn't supply its own. Uncommon (usually each row goes somewhere different)."New value: +"Delivery address (all fields incl. contact phone and email) applied to every row that doesn't supply its own. Uncommon (usually each row goes somewhere different)."
    • addedInput schema / properties / shared_delivery / properties / email / description
      Added value: +"Delivery contact email. Required by Warp on every booking."
    • changedInput schema / properties / shared_delivery / required
      Previous value: -[
      -  "zipCode",
      -  "city",
      -  "state",
      -  "street",
      -  "contactName",
      -  "phone"
      -]New value: +[
      +  "zipCode",
      +  "city",
      +  "state",
      +  "street",
      +  "contactName",
      +  "phone",
      +  "email"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / bookings / items / properties / delivery / properties / zipCode / pattern
      Added value: +"^\\d{5}$"
    • addedInput schema / properties / bookings / items / properties / pickup / properties / zipCode / pattern
      Added value: +"^\\d{5}$"
    • addedInput schema / properties / shared_delivery / properties / zipCode / pattern
      Added value: +"^\\d{5}$"
    • addedInput schema / properties / shared_pickup / properties / zipCode / pattern
      Added value: +"^\\d{5}$"
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/readOnlyHint annotations: discloses that execution is sequential, that each row triggers its own card charge (a real financial consequence), and that quote_ids expire and must come from this session. Also describes the return artifact. This is the kind of context annotations cannot convey.

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 primary action and warning, and every sentence carries information. It is somewhat dense with parentheticals ('(sequential, one card charge per row)', '(the same one batch_quote returned for that row)'), but that density is informative rather than redundant.

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?

For a destructive, nested, 8-parameter tool with no output schema, the description covers return value (progress card with per-row Booked/Failed + tracking), inheritance defaults, and the session-scoped quote_id constraint. Only minor gaps remain, such as the 1-25 row cap, which the schema already documents.

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 coverage is 63%, and the description compensates by explaining the shared_* inheritance model (top-level pickup/delivery applied to rows that omit their own) and clarifying that quote_id must be the same one batch_quote returned. It doesn't probe every field, but the core nested-default semantics are covered.

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 MANY already-quoted lanes') plus the defining traits: batched into ONE call, sequential execution, one card charge per row. This cleanly distinguishes it from the single-shipment 'book' sibling and from 'batch_quote'.

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 names the triggering condition ('after batch_quote when the user says book all of them or book rows 1, 3, 5') and the anti-pattern to avoid ('do NOT call book in a loop'). No inference required.

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.