Skip to main content
Glama

Okam

Validate cart

cart_validate
Read-only

Validate the current cart before checkout.

Input Schema

NameRequiredDescriptionDefault
storeIdYesOkam store id.

Output Schema

NameRequiredDescriptionDefault
storeIdNo
hasErrorsNo
cartIsEmptyNo
minimumPriceNo
storeIsClosedNo
itemsOutOfStockNo
paymentTypeErrorNo
priceDifferErrorNo
priceTooLowErrorNo
deliveryMethodErrorNo
deliveryAddressErrorNo
giftcardBalanceTooLowNo
sameDayAfterHoursOrderNotAllowedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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=false, so safety is covered by structure. The description adds the pre-checkout timing context, which is genuine added value, but does not disclose what a failed validation means or what the caller should do next.

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 zero padding, appropriate for a one-parameter tool. It is efficient but borders on thin given the ambiguity of 'validate'.

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?

The tool is simple: one documented parameter, an output schema that carries return semantics, and annotations that cover the safety profile. What remains missing is only the meaning of validation failure, a minor gap at this complexity level.

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 description coverage is 100% with a single required storeId parameter documented in the schema, so the baseline of 3 applies. The description adds no further meaning about storeId or how the 'current cart' is identified relative to that store.

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 ("Validate the current cart") plus the timing context ("before checkout"), which distinguishes it from siblings like cart_get or checkout_start. It stops short of saying what 'validate' actually checks (stock, price changes, minimum order), leaving the operation somewhat opaque.

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

Usage Guidelines3/5

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

"Before checkout" implies the usage window and hints this is a prerequisite step, which is useful. But there is no explicit statement of when-not to call it, whether it is mandatory before checkout_start, or what to do with the result, so the guidance remains implied rather than stated.

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