Skip to main content
Glama

get_cart

Read-only

Retrieves the current cart for one or all supported Danish grocery stores, showing lines, fees, total, minimum-order status and the checkout URL so you can review items before updating quantities or paying.

Instructions

Show the cart as it is now: lines, fees, total, whether the minimum order is met and url, the store's cart page where the human checks the cart and pays: give it to the human. With store that store's cart; without, every store's cart keyed by store name, a failing store (e.g. no login) as {"error": ...} next to the others. REMA 1000: the cart is the shopping list "handle-mcp" in REMA's app, where the human orders. Use it before set_cart_quantities to see what is there; for past orders use get_orders.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeNoOne store: "nemlig", "bilkatogo" or "rema1000". Leave out for all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.1
    • addedInput schema / properties / store / description
      Added value: +"One store: \"nemlig\", \"bilkatogo\" or \"rema1000\". Leave out for all."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description still adds real value beyond that: the exact return payload, per-store keying, and the in-band error shape {"error": ...} for a failing store such as an unauthenticated one. It stops short of pagination or freshness/caching behavior, so it is good but not exhaustive.

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?

Purpose is front-loaded and nearly every clause carries new information (return fields, store behavior, error shape, routing to siblings). The chained-colon sentence structure and the REMA-specific aside with the quoted "handle-mcp" name make it denser and harder to parse than necessary, costing some readability.

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?

With only one optional parameter, no output schema, and annotations covering safety, the description carries the remaining burden well: it describes the return shape, the multi-store aggregation and error handling, and the REMA-specific meaning of the cart. An agent has everything needed to call it and interpret results.

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% and the enum-like store values are already listed in the schema, so the baseline would be 3. The description goes further by explaining the consequence of omitting store — every store's cart keyed by store name with per-store errors inline — which is semantics the schema does not convey.

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?

Specific verb+resource ("Show the cart as it is now") followed by an enumeration of exactly what is returned: lines, fees, total, minimum-order status, and the payment url. It explicitly distinguishes itself from set_cart_quantities and get_orders, so an agent can separate it 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 ordering rule ("Use it before set_cart_quantities to see what is there") and routes past-order queries to get_orders. It also states the store vs. no-store condition and what the no-store case returns, leaving little to inference.

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