Skip to main content
Glama

Read the Alza account cart

cart
Read-onlyIdempotent

Retrieve the authenticated user's Alza shopping cart: item lines, prices, discounts, vouchers, and basket identifiers needed for cart changes.

Instructions

Read the authenticated user's Alza shopping cart: item lines with quantities and prices, applied discounts, vouchers, and the basket/order identifiers later checkout steps need. Use to verify an add_to_cart worked, to inspect coupon/voucher state, or to collect ids for mutate_list (e.g. coupon_remove.couponId) and basket_update. Do not use for the anonymous web/visitor cart — that is web_cart. Requires a loaded mobile API access token — check account_status first; if none is loaded, run auth_start, have the user complete the browser sign-in, then auth_exchange with the returned code and state. Read-only. The response envelope is large (item lines + order summary); the basket_cnt, pricePay, and items fields are the signal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errNo
msgNo
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the read-only nature is covered. The description adds valuable context: it requires a loaded mobile API access token and gives a fallback sequence, and it notes the response envelope is large with specific signal fields. This goes beyond annotations without contradicting them.

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?

The description is thorough yet efficient, with no filler. It front-loads purpose, then usage and exclusions, then auth prerequisites, and ends with a useful response-size hint. Every sentence earns its place, and it remains compact given the scope.

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 tool with no parameters, an output schema, and comprehensive annotations, the description is remarkably complete. It covers purpose, use cases, alternatives, auth prerequisites, and response guidance. Nothing an agent needs to call 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?

There are zero parameters, so the schema has nothing to explain and the description carries no parameter burden. The baseline of 4 for zero-parameter tools is appropriate, and the description does not need to elaborate further.

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 ('Read') and resource ('authenticated user's Alza shopping cart') and enumerates the key contents (item lines, discounts, vouchers, identifiers). Explicitly distinguishes from the sibling `web_cart` for anonymous carts, so an agent can tell them apart without opening schemas.

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 explicit when-to-use scenarios (verify add_to_cart, inspect coupon state, collect ids for mutate_list) and an explicit when-not-to-use with the named alternative (`web_cart`). Also explains prerequisite auth steps via `account_status`/`auth_start`/`auth_exchange`, which is strong routing guidance.

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