Skip to main content
Glama

Adam's Snack Wagon

Build a cart and get the pay link

build_cart

Build a cart at one store and get a pay link for the customer. This does NOT place the order and does NOT charge anyone. Every item and choice is checked against the real menu; if a required choice is missing, no cart is made and the answer says what to ask the customer. Send ALL lines each time. After it works, show the customer the returned order list and pay link. The customer opens the link, checks it, and pays.

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": {
      "store_id": "<store_id>",
      "items": "<items>"
    },
    "name": "build_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
store_idYesstore_id from list_stores.
dropoff_noteNoOptional. Cabin name, gate code, or where to leave it.
delivery_addressNoOptional. The customer's delivery address. With it, the answer has the full total.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only say non-readonly, non-destructive, not idempotent), the description discloses the disabling behaviors: no order is placed, nobody is charged, server-side validation against the real menu, and the specific failure mode where a missing required choice aborts cart creation with an explanation of what to ask the customer. "Send ALL lines each time" also flags full-batch resend semantics that matter for a non-idempotent mutation. This is exactly the context annotations cannot express.

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 purpose and the critical "does not charge" caveat in the first two sentences, then failure behavior, then the customer-facing follow-up. Dense and mostly waste-free, though the closing sentence about the customer opening and paying the link is slightly redundant with the pay-link purpose already stated.

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

Completeness5/5

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

For a mutating tool with no output schema, the description covers what an agent needs: what is created, what is explicitly not done, validation and failure behavior, resend expectations, and what the response contains (order list plus pay link, and a full total when a delivery address is given). Nothing essential to correct invocation is missing.

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 75% and the nested fields are well documented, but the description adds meaning the schema does not: items must be re-sent in full on every call rather than incrementally, and choice_ids must satisfy required-choice validation or the call fails entirely. It does not elaborate on dropoff_note or delivery_address, but the schema already explains both.

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?

"Build a cart at one store and get a pay link for the customer" gives a specific verb, resource, and scope, and immediately bounds it with "This does NOT place the order and does NOT charge anyone." An agent can tell this apart from order_status and from the ID-lookup siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes clear this is the cart-creation + pay-link step and explicitly not the ordering step, and it implies item_id/choice_ids come from get_menu and store_id from list_stores. It also mandates "Send ALL lines each time" and describes the post-success flow. It stops short of naming an explicit alternative tool or a when-not-to-call condition beyond the ordering exclusion.

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