Skip to main content
Glama

Order for pickup

create_pickup_order
Destructive

Create an order to collect in person. Returns the order id, total and a claim (keep it); pay it with pay_order. The shop emails the pickup pass to email once it's paid, and where the chat shows cards the order shows as one that becomes the pass. Where the shop takes cards, payment: "card" returns a checkout link for the user to pay on instead.

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": {
      "items": "<items>",
      "email": "<email>"
    },
    "name": "create_pickup_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the order, shown to staff
emailYesThe user's email. The pickup pass goes here too.
itemsYes
paymentNoWho pays: agent (USDC over x402, or a test payment at a test shop), card (the user pays on a checkout link), or test (where the shop takes test payments: the whole flow with no money moving). Default: agent where the shop takes it, else card.
shop_urlNoAn agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app.
pickup_atNoWhen the user wants to collect, if not as soon as possible: a time in the shop's own time zone (get_shop gives its local time) like "17:30" or "5:30pm" (today, or tomorrow once it has passed), or an ISO time. It must be when the shop is open, within 7 days. Leave it out for as soon as possible.
dietary_noteNoThe user's dietary needs for the shop, in their words (an allergy, an intolerance), where get_shop says it takes dietary notes. Only what the user said; leave it out if they said nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pickup_at / description
      Previous value: -"When the user wants to collect, if not as soon as possible: a time in the shop's own time like \"17:30\" or \"5:30pm\" (today, or tomorrow once it has passed), or an ISO time. It must be when the shop is open, within 7 days. Leave it out for as soon as possible."New value: +"When the user wants to collect, if not as soon as possible: a time in the shop's own time zone (get_shop gives its local time) like \"17:30\" or \"5:30pm\" (today, or tomorrow once it has passed), or an ISO time. It must be when the shop is open, within 7 days. Leave it out for as soon as possible."
  2. Changed1 schema field changed
    • addedInput schema / properties / pickup_at
      Added value: +{
      +  "description": "When the user wants to collect, if not as soon as possible: a time in the shop's own time like \"17:30\" or \"5:30pm\" (today, or tomorrow once it has passed), or an ISO time. It must be when the shop is open, within 7 days. Leave it out for as soon as possible.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / options / description
      Previous value: -"The ids of this line's chosen options from get_shop (a milk, an extra shot). Ask for a required choice that has no default."New value: +"The ids of this line's chosen options from get_shop (a size, a colour, an add-on). Ask for a required choice that has no default."
  4. Changed2 schema fields changed
    • addedInput schema / properties / dietary_note
      Added value: +{
      +  "description": "The user's dietary needs for the shop, in their words (an allergy, an intolerance), where get_shop says it takes dietary notes. Only what the user said; leave it out if they said nothing.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / options
      Added value: +{
      +  "description": "The ids of this line's chosen options from get_shop (a milk, an extra shot). Ask for a required choice that has no default.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / email / description
      Previous value: -"The user's email. The pickup QR goes here."New value: +"The user's email. The pickup pass goes here too."
  6. Changed2 schema fields changed
    • changedInput schema / properties / payment / description
      Previous value: -"Who pays: agent (USDC over x402, or a test payment at a test shop) or card (the user pays on a checkout link). Default: agent where the shop takes it, else card."New value: +"Who pays: agent (USDC over x402, or a test payment at a test shop), card (the user pays on a checkout link), or test (where the shop takes test payments: the whole flow with no money moving). Default: agent where the shop takes it, else card."
    • changedInput schema / properties / payment / enum
      Previous value: -[
      -  "agent",
      -  "card"
      -]New value: +[
      +  "agent",
      +  "card",
      +  "test"
      +]
  7. Changed1 schema field changed
    • addedInput schema / properties / payment
      Added value: +{
      +  "description": "Who pays: agent (USDC over x402, or a test payment at a test shop) or card (the user pays on a checkout link). Default: agent where the shop takes it, else card.",
      +  "enum": [
      +    "agent",
      +    "card"
      +  ],
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • addedInput schema / properties / shop_url
      Added value: +{
      +  "description": "An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app.",
      +  "type": "string"
      +}
  9. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare a destructive, non-idempotent, open-world write; the description adds substantial context beyond that — what the call returns (order id, total, claim), that the claim must be kept, and that the shop emails a pickup pass to the supplied address only after payment. It does not warn that a repeated call creates a second order or what happens to the claim if payment never occurs, which is the main remaining behavioral gap.

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?

The purpose is front-loaded in the first clause and later sentences confine themselves to returns and payment modes. The phrase 'where the chat shows cards the order shows as one that becomes the pass' is convoluted and costs more reading effort than it should.

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?

With no output schema and seven parameters, the description correctly compensates by describing the return value and the post-payment email side effect. For a money-moving, non-idempotent mutation it could still be more complete about failure handling and duplicate submissions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 86%, so the schema carries most parameter meaning and the baseline is 3. The description does add value the schema lacks, namely the card flow producing a checkout link and the email receiving the pickup pass, though it says nothing about shop_url, pickup_at or dietary_note beyond what those fields already document.

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?

The first sentence gives a specific verb and resource — 'Create an order to collect in person' — which is clearly distinct from pay_order, cancel_pickup_order and order_status. It does not explicitly separate itself from the group-order siblings (start_group_order, join_group_order), so an agent must infer that this is the single order path.

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 routes the agent to the correct follow-up ('pay it with pay_order') and explains which payment mode to pick where a shop takes cards, which is real when-to-use guidance. It stops short of stating exclusions, such as when to prefer a group order instead of a personal pickup order.

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.