Skip to main content
Glama

get_orders

Read-only

List a store’s past orders newest first—ID, status, date, total—to identify usual purchases, then fetch an order’s products by ID. Reads only; requires login.

Instructions

List the human's past orders in one store, newest first: id, status, date and total. Use it for "what do we usually buy"; then get_order with an id for the products. 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>"
    },
    "name": "get_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOrders to return, 1-25.
storeYesOne store: "nemlig", "bilkatogo" or "rema1000".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.1
    • addedInput schema / properties / limit / description
      Added value: +"Orders to return, 1-25."
    • addedInput schema / properties / store / description
      Added value: +"One store: \"nemlig\", \"bilkatogo\" or \"rema1000\"."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false, openWorldHint true), and 'Only reads' merely restates them. The description earns credit for adding non-annotation context: an authentication requirement and the ordering of results, which matter for a tool with no output schema.

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 result shape, then usage, then constraints — a sensible order with no filler. The telegraphic fragments ('nemlig and BilkaToGo; needs a login. Only reads.') are efficient but slightly clipped, which contributes to the store-list ambiguity.

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 correctly enumerates return fields, and it adds ordering, scope, auth, and a follow-up tool. The one substantive gap is that its store list conflicts with the schema, leaving an agent unsure whether rema1000 is valid input.

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

Parameters2/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 baseline would be 3. However, the description asserts the tool covers 'nemlig and BilkaToGo' while the schema's store parameter explicitly allows 'rema1000' — a misleading narrowing of the accepted values, worse than saying nothing about parameters.

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 ('List the human's past orders in one store'), the ordering ('newest first'), and the returned fields (id, status, date, total). It also distinguishes itself from the closely named sibling by saying get_order takes an id for products, so an agent can choose between them 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 Guidelines4/5

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

Gives a concrete use case ('what do we usually buy') and an explicit follow-up route ('then get_order with an id for the products'), plus a prerequisite ('needs a login'). It stops short of stating when not to use it, e.g. relative to get_cart or compare_basket, but the guidance present is actionable.

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