Skip to main content
Glama

Trailberg — Activewear, Tracksuits & Footwear

View cart

view_cart

Return the current Trailberg cart contents to an already-rendered app.

Input Schema

NameRequiredDescriptionDefault
cart_idNocurrent
track_actionNo
cart_scope_idNo
source_surfaceNocart
cart_session_idNo

Output Schema

NameRequiredDescriptionDefault
typeNocart_result
emptyNo
itemsNo
cartIdNo
totalsNo
messageYes
storeIdYes
snapshotAtNo
cartScopeIdNo
cartVersionNo
continueUrlNo
emptyReasonNo
snapshotModeNocurrent
cartSessionIdNo
lineItemCountNo
cartSessionStateNoactive

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure and largely fails it. It does not say whether the call is read-only, what 'track_action' does as a side effect, or what happens when no cart exists, and it never says the cart is left unchanged.

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?

A single front-loaded sentence with no filler. It is efficient, though the terseness is part of why the surrounding gaps exist.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema is present, so return values need not be described, but for a five-parameter cart tool with no annotations the description is far too thin. It leaves callers guessing about the default 'current' cart, the tracking side effect, and the required session context.

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

Parameters1/5

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

Schema description coverage is 0% across five parameters, and the description mentions none of them. The meaning of cart_scope_id, cart_session_id, source_surface, and especially the mutation-like track_action is left completely unexplained.

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?

States a specific verb and resource ('Return the ... cart contents') plus a qualifier ('to an already-rendered app') that hints at a rendering precondition. It does not explicitly differentiate itself from the very similar siblings render_cart, update_cart, or add_to_cart, so the reader must infer the distinction.

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?

There is no guidance on when to call this instead of render_cart (which also produces cart output) or update_cart. The phrase 'already-rendered app' implies a precondition but never states it as a rule, and no alternatives or exclusions are named.

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