Skip to main content
Glama

get_order

Read-only

Retrieve a past grocery order with product names, IDs, quantities, and prices so you can review purchases and reuse product IDs to refill your cart.

Instructions

Show one past order with every product bought: name, product id, count and price. Get the id from get_orders first. The product ids work in set_cart_quantities to buy the same again. nemlig and BilkaToGo; needs a login. Only reads.

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": "<store>",
      "order_id": "<order_id>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeYesOne store: "nemlig", "bilkatogo" or "rema1000".
order_idYesThe order's `id` from get_orders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.1
    • addedInput schema / properties / order_id / description
      Added value: +"The order's `id` from get_orders."
    • addedInput schema / properties / store / description
      Added value: +"One store: \"nemlig\", \"bilkatogo\" or \"rema1000\"."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

The useful addition is the auth requirement ("needs a login"), which annotations do not convey; "Only reads" merely restates readOnlyHint=true. However, the stated store coverage ("nemlig and BilkaToGo") conflicts with the schema, which also allows "rema1000", leaving the agent unsure whether that store is supported. No annotation contradiction in the read/write sense, but the store claim is imprecise.

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 what is returned, then prerequisites, then store/auth constraints – a sensible order. One sentence ("Only reads") is redundant with the annotations and the store list is terse to the point of being misleading, so not quite maximal.

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, the description carries the return-value burden and does list the per-item fields, plus the auth requirement and the re-order pathway. It omits order-level details (totals, delivery info, what happens for an unknown id) and leaves the store support question ambiguous, but is largely sufficient for a 2-parameter read tool.

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 100%, so both parameters are already documented, and the description's note that the id comes from get_orders repeats the schema. The remark about product ids working in set_cart_quantities describes downstream use of returned values rather than adding parameter meaning, so baseline 3 applies.

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?

Opens with a specific verb and resource ("Show one past order") and enumerates the returned fields (name, product id, count, price). The word "one" plus the explicit pointer to get_orders makes it unambiguously distinct from the sibling that lists orders.

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?

Gives a clear prerequisite workflow ("Get the id from get_orders first") and a concrete follow-on path (product ids feed set_cart_quantities to re-buy). It does not explicitly say when not to use it, but the get_orders reference implies the listing alternative well enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.