Skip to main content
Glama

get_basket

Retrieve the items currently in a user's Migros shopping basket or list, returning product IDs and quantities; optionally target a specific list using shoppingListId.

Instructions

Fetch the items currently in the user's shopping basket (Migros calls this a shopping list). Returns product IDs and quantities; use get_product_details to enrich. If the user has several lists, use get_shopping_lists and pass shoppingListId. Requires authentication.

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_basket"
  }
}

Input Schema

NameRequiredDescriptionDefault
shoppingListIdNoOptional shopping list ID from get_shopping_lists. Omit to use the first list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose authentication requirements, the return payload shape (product IDs and quantities), and the default behavior when shoppingListId is omitted ('Omit to use the first list'). It does not address pagination, behavior on an empty basket, or whether the result is cached/live, which keeps it short of a 5 for a zero-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core purpose, then the return shape, then the disambiguation path, then the auth requirement. Every sentence carries information the agent needs; no filler or restated title.

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 single-optional-parameter read tool with no output schema and no annotations, the description covers purpose, return fields, default parameter behavior, auth, and the escalation path to sibling tools. Nothing required 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.

Parameters3/5

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

Schema coverage is 100% and the single parameter already documents its origin from get_shopping_lists and the omit-to-default behavior, so the description largely restates the schema. The only added meaning is the explicit cross-reference to get_shopping_lists as the prerequisite step, which the schema hints at but does not spell out as a workflow.

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 ('Fetch the items currently in the user's shopping basket') and immediately resolves the Migros naming ambiguity (shopping list vs. basket), which is the main confusion risk for this domain. It is clearly distinguishable from siblings get_shopping_lists (lists themselves) and get_product_details (enrichment).

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?

Explicitly routes the agent: use get_product_details to enrich IDs into product info, and when the user has several lists, use get_shopping_lists first and pass shoppingListId. Both the alternative and the selecting condition are named rather than left to inference.

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