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.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the write/financial nature is covered; the description still adds real context the annotations cannot: charges are sequential, one card charge per row, and the response is a progress card with per-row Booked/Failed status plus tracking numbers. The one gap is partial-failure semantics – it does not say whether already-booked rows are charged if a later row fails or whether a retry would double-charge.

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?

Four sentences, front-loaded with what the tool does, then when to use it, then the key parameter model, then the return value. No filler and no repetition of schema text beyond what is needed to explain the shared-vs-per-row design.

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, 8-parameter, nested-object tool with no output schema, the definition covers purpose, alternative, the shared/per-row inheritance rule, and the return shape (per-row status + tracking). What is missing is failure handling – what to do when some rows come back Failed, and whether those rows were charged – which matters given destructiveHint=true and per-row card charges.

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?

With 63% schema coverage and nested address objects, the description adds the inheritance mental model that the per-field schema notes only state locally: top-level shared addresses apply to rows that omit their own, so a single warehouse → many destinations needs only one address pair. It does not touch quote_id expiry, accessorials, or the 1-25 row cap in prose, but those are documented in the schema.

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?

"Book MANY already-quoted lanes in ONE call" names a specific verb (book), resource (already-quoted lanes), and scope (many, batched), and parenthetically states the two traits that separate it from the single-lane sibling: sequential execution and one card charge per row. An agent can pick this over `book` 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?

Explicit trigger ("after batch_quote when the user says 'book all of them' or 'book rows 1, 3, 5'") plus an explicit prohibition ("do NOT call book in a loop"). That is both when-to-use and when-not-to-use with the alternative named.

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.