Skip to main content
Glama

shopping cart get

shopping_cart_get
Read-only

Refresh a merchant cart state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cart_idYesProvider cart ID returned by shopping_cart_create or shopping_cart_update.
agent_idYesRegistered UCP Gateway UUID returned by register_ucp_profile; required for every Shopping tool.
merchant_domainYesMerchant host such as 'outboundpower.com' or 'example.myshopify.com'. Do not include a URL scheme, localhost, private IP, file URL, or ftp URL.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesTrue for successful tool execution; false for structured tool errors.
rawNoRedacted raw provider or registry payload for debugging. Shape may vary by upstream endpoint.
cartNoSafe provider cart summary including id, status, continue_url, totals, line_items, and messages when provided.
errorNoStructured tool error.
messageYesHuman-readable result summary or recovery message.
next_stepYesRecommended next step. Suggestions are non-binding and never authorize payment or state-changing actions.
merchant_domainNoResolved merchant domain.
commerce_session_idNoInternal gateway commerce session UUID when one was created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, indicating a safe read operation. The description adds no additional behavioral traits beyond what annotations provide, such as side effects or auth requirements, but does not contradict the annotations.

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?

The description is a single concise sentence, efficiently stating the tool's function. It is front-loaded with the verb 'refresh'. While it could be slightly more informative about the return value, it is appropriately sized for a simple read tool.

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?

Given the tool's simplicity, the existence of an output schema, and the annotations, the description is fairly complete. It does not explain the return value, but the output schema covers that. The description could mention that it requires a valid cart_id, but that is in the schema.

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 the parameters are fully documented in the schema. The description does not add any extra meaning or context beyond what the schema provides, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses 'refresh' to imply retrieving current state, which aligns with the tool name 'get'. It mentions 'merchant cart state' clearly. However, it does not explicitly differentiate from sibling tools like shopping_cart_update or shopping_cart_cancel, but the verb 'refresh' hints at a read-only operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, context for use, or scenarios where other shopping cart tools would be more appropriate.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources