Skip to main content
Glama

RushOrderTees

Resume an expired order

resume_order
Idempotent

Picks up an order that another tool refused as expired. Applies only after that refusal, with the same order_id, when the customer wants to continue that order rather than start over: it gives the order a fresh window and fresh links and returns where things stand, so you can carry on with the call next_call names. Without a refusal there is nothing to resume; start_print_order opens a new order.

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": {
      "order_id": "<order_id>"
    },
    "name": "resume_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order_id another tool refused as expired.

Output Schema

NameRequiredDescriptionDefault
specYesThe print as the customer has described it so far, beside garment. Null where they have not said; still_needed lists what is missing.
notesYesRelay these to the customer.
savedYesWhether the order is saved to a customer account (save_progress).
statusYes
artworkNo
choicesNoAnswers the customer can pick from, one set per field ask_next asks about. Offer them as selectable options where your client can, otherwise as a short list. They are suggestions: colors are families and the customer may name any shade, quantity and width may be any number. Send whatever they answer to describe_order.
garmentNoThe garment on the order, and what mockup_url shows. Name it when you show the picture; when it is provisional, say so.
optionsNo
ask_nextNoAsk the customer this, in your own words, and send the answer to describe_order.
order_idYes
next_callYesWhat to call next, and why.
expires_atNoWhen an unsaved order expires; null once it is saved to an account or paid.
mockup_urlNoThe garment on the order, in the customer's color, with their design on it once we have it. An image address: show it as a picture where your client can, unless our app already shows it in the chat, never as text or as a link, and never describe it in place of the summary.
alternativesNoPresent from the moment several styles fit until the customer picks, beside whatever ask_next asks: show all of them with their summaries, prices and minimums, say the one marked is_provisional is what we will use unless they choose, and call choose_style with the id they pick (or send "any" to describe_order to leave it to us).
checkout_urlNoShow it to the customer as one link labeled "Pay and enter shipping", not as a bare address: they see the artwork and total, confirm their email with a code we send them, then pay and enter their address there.
mockup_viewsNoEvery side of the garment, the printed one first: mockup_url with the design, then the other sides plain. Where your client can show pictures, show them all, so the customer sees which sides stay blank.
still_neededYesFields the customer has not told us yet, and any go-ahead we are waiting on for something the order cannot carry.
chosen_optionNo
mockup_changedNoTrue when mockup_views shows the design on the garment differently from the last time it was shown: a new garment, color, design, placement or width. Show the pictures again when it is true.
artwork_upload_urlNoPresent until the design is accepted. Show it to the customer as one link labeled "Upload your design", not as a bare address: they drop their design file on that page and it is checked there. You cannot upload for them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / garment / properties / size / description
      Added value: +"The size, or the size spread in the style's size order: \"2 S, 6 M, 7 L\". Sizes alone until their pieces are known."
    • addedOutput schema / properties / spec / properties / size / description
      Added value: +"The one size the order is in; null until a size is known, and when the order is spread across several."
    • addedOutput schema / properties / spec / properties / sizes
      Added value: +{
      +  "description": "The size spread: how the quantity splits across sizes. Complete once the pieces add up to quantity; get_options needs it complete.",
      +  "items": {
      +    "properties": {
      +      "quantity": {
      +        "description": "Pieces in this size; null until the customer says how many.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "size": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "size"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / spec / required
      Added value: +[
      +  "sizes"
      +]
  2. Changed3 schema fields changed
    • changedOutput schema / properties / alternatives / items / properties / mockup_url / description
      Previous value: -"An image address: show it as a picture where your client can, never as text or as a link, and never describe it in place of the summary."New value: +"An image address: show it as a picture where your client can, unless our app already shows it in the chat, never as text or as a link, and never describe it in place of the summary."
    • changedOutput schema / properties / mockup_url / description
      Previous value: -"The garment on the order, in the customer's color, with their design on it once we have it. An image address: show it as a picture where your client can, never as text or as a link, and never describe it in place of the summary."New value: +"The garment on the order, in the customer's color, with their design on it once we have it. An image address: show it as a picture where your client can, unless our app already shows it in the chat, never as text or as a link, and never describe it in place of the summary."
    • changedOutput schema / properties / mockup_views / items / properties / url / description
      Previous value: -"An image address: show it as a picture where your client can, never as text or as a link, and never describe it in place of the summary."New value: +"An image address: show it as a picture where your client can, unless our app already shows it in the chat, never as text or as a link, and never describe it in place of the summary."
  3. Changed1 schema field changed
    • addedOutput schema / properties / mockup_changed
      Added value: +{
      +  "description": "True when mockup_views shows the design on the garment differently from the last time it was shown: a new garment, color, design, placement or width. Show the pictures again when it is true.",
      +  "type": "boolean"
      +}
  4. Changed5 schema fields changed
    • changedOutput schema / properties / alternatives / description
      Previous value: -"Present from the moment several styles fit until the customer picks, beside whatever ask_next asks: show all of them with their summaries and prices, say the first is what we will use unless they choose, and call choose_style with the id they pick (or send \"any\" to describe_order to keep the first)."New value: +"Present from the moment several styles fit until the customer picks, beside whatever ask_next asks: show all of them with their summaries, prices and minimums, say the one marked is_provisional is what we will use unless they choose, and call choose_style with the id they pick (or send \"any\" to describe_order to leave it to us)."
    • addedOutput schema / properties / alternatives / items / properties / minimum
      Added value: +{
      +  "description": "The minimum as the storefront words it (\"Minimum 10\", \"No minimum\"). Say it with the price.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / alternatives / items / properties / minimum_quantity
      Added value: +{
      +  "description": "The fewest pieces the style is sold in.",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / alternatives / items / properties / priced_at_quantity / description
      Previous value: -"The quantity the price is for: the order's, or 1 until the customer says how many. It drops at 12 and again at 24."New value: +"The quantity the price is for: the order's, or 1 until the customer says how many, or the style's minimum when that is more. It drops at 12 and again at 24."
    • changedOutput schema / properties / alternatives / items / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "unit_price_cents",
      -  "priced_at_quantity",
      -  "rank",
      -  "summary",
      -  "is_provisional",
      -  "style"
      -]New value: +[
      +  "id",
      +  "name",
      +  "unit_price_cents",
      +  "priced_at_quantity",
      +  "minimum_quantity",
      +  "minimum",
      +  "rank",
      +  "summary",
      +  "is_provisional",
      +  "style"
      +]
  5. Changed18 schema fields changed
    • changedOutput schema / properties / chosen_option / properties / delivers_by / description
      Previous value: -"The date it arrives, YYYY-MM-DD."New value: +"The date free delivery arrives, YYYY-MM-DD."
    • changedOutput schema / properties / chosen_option / properties / delivery_days / description
      Previous value: -"Business days from now to the customer's door."New value: +"Business days from now to the customer's door with free delivery."
    • removedOutput schema / properties / chosen_option / properties / delivery_label
      Removed value: -{
      -  "description": "\"Free delivery\" or \"Rush delivery\"; standard shipping costs nothing, rush shipping is charged at checkout.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / chosen_option / properties / meets_deadline / description
      Added value: +"Whether free delivery arrives by the customer's deadline."
    • addedOutput schema / properties / chosen_option / properties / rush_delivers_by
      Added value: +{
      +  "description": "The earliest date rush delivery arrives, YYYY-MM-DD; its shipping is priced at checkout, where the customer chooses the speed.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / chosen_option / properties / rush_delivery_days
      Added value: +{
      +  "description": "Business days to the door with rush delivery; null when rush is no sooner.",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / chosen_option / properties / rush_meets_deadline
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / chosen_option / properties / speed
      Removed value: -{
      -  "enum": [
      -    "standard",
      -    "rush"
      -  ],
      -  "type": "string"
      -}
    • changedOutput schema / properties / chosen_option / required
      Previous value: -[
      -  "id",
      -  "method",
      -  "speed",
      -  "quantity",
      -  "unit_price_cents",
      -  "total_cents",
      -  "currency",
      -  "delivery_days",
      -  "delivers_by",
      -  "delivery_label",
      -  "summary"
      -]New value: +[
      +  "id",
      +  "method",
      +  "quantity",
      +  "unit_price_cents",
      +  "total_cents",
      +  "currency",
      +  "delivery_days",
      +  "delivers_by",
      +  "summary"
      +]
    • changedOutput schema / properties / options / items / properties / delivers_by / description
      Previous value: -"The date it arrives, YYYY-MM-DD."New value: +"The date free delivery arrives, YYYY-MM-DD."
    • changedOutput schema / properties / options / items / properties / delivery_days / description
      Previous value: -"Business days from now to the customer's door."New value: +"Business days from now to the customer's door with free delivery."
    • removedOutput schema / properties / options / items / properties / delivery_label
      Removed value: -{
      -  "description": "\"Free delivery\" or \"Rush delivery\"; standard shipping costs nothing, rush shipping is charged at checkout.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / options / items / properties / meets_deadline / description
      Added value: +"Whether free delivery arrives by the customer's deadline."
    • addedOutput schema / properties / options / items / properties / rush_delivers_by
      Added value: +{
      +  "description": "The earliest date rush delivery arrives, YYYY-MM-DD; its shipping is priced at checkout, where the customer chooses the speed.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / options / items / properties / rush_delivery_days
      Added value: +{
      +  "description": "Business days to the door with rush delivery; null when rush is no sooner.",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / options / items / properties / rush_meets_deadline
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / options / items / properties / speed
      Removed value: -{
      -  "enum": [
      -    "standard",
      -    "rush"
      -  ],
      -  "type": "string"
      -}
    • changedOutput schema / properties / options / items / required
      Previous value: -[
      -  "id",
      -  "method",
      -  "speed",
      -  "quantity",
      -  "unit_price_cents",
      -  "total_cents",
      -  "currency",
      -  "delivery_days",
      -  "delivers_by",
      -  "delivery_label",
      -  "summary"
      -]New value: +[
      +  "id",
      +  "method",
      +  "quantity",
      +  "unit_price_cents",
      +  "total_cents",
      +  "currency",
      +  "delivery_days",
      +  "delivers_by",
      +  "summary"
      +]
  6. Changed2 schema fields changed
    • changedOutput schema / properties / chosen_option / properties / delivery_label / description
      Previous value: -"\"Free delivery\" or \"Rush delivery\"; standard shipping costs nothing."New value: +"\"Free delivery\" or \"Rush delivery\"; standard shipping costs nothing, rush shipping is charged at checkout."
    • changedOutput schema / properties / options / items / properties / delivery_label / description
      Previous value: -"\"Free delivery\" or \"Rush delivery\"; standard shipping costs nothing."New value: +"\"Free delivery\" or \"Rush delivery\"; standard shipping costs nothing, rush shipping is charged at checkout."
  7. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description discloses concrete effects: the order gets a fresh window and fresh links, and the response conveys current status plus a next_call to continue with. It does not cover authorization needs or what happens to previously issued links, which keeps it short of a 5.

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?

Precondition, effect, and alternative are front-loaded and every clause carries information. The middle sentence chains several clauses (fresh window, fresh links, return state, next_call) and could be split for faster scanning, but nothing is wasted.

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 one-parameter tool with an output schema and full annotations, the description covers the trigger condition, the state change, the follow-up path, and the alternative. Nothing an agent needs to invoke it correctly 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 100% for the single order_id parameter, so the baseline is 3, but the description adds a real constraint beyond the schema: it must be the same order_id that the refusing tool reported, tying the value to a prior call rather than any arbitrary order.

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: it resumes an order that was refused as expired, and it explicitly names start_print_order as the alternative for opening a new order. The agent can distinguish this from 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 Guidelines5/5

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

Gives an explicit precondition (only after another tool's expiry refusal, using the same order_id) and an explicit negative case ("Without a refusal there is nothing to resume"), plus the correct alternative when the customer wants to start over. There is no inference required to select between it and start_print_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.

Resources