Skip to main content
Glama

get_checkout

Retrieves a CartAI checkout task's state by taskId, including status, iterations, pricing, shipping, addons, and original customer/product data. Call on webhook events; polling is not recommended.

Instructions

Retrieves the full state of a CartAI checkout task by taskId — current status, execution iterations, derivedDetails (pricing, shipping), addons, and the original customer and product data. Best called on a webhook event; polling is possible but not recommended.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "taskId": "<taskId>"
    },
    "name": "get_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesA taskId returned by create_checkout or create_search_checkout

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the polling cost caveat and the shape of the returned payload. It does not say what happens with an unknown, expired or already-cancelled taskId, nor whether auth or scoping applies. Useful context, but an important failure-mode gap remains.

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?

Two sentences, zero waste, and the payload contents are front-loaded before the usage caveat. Every clause contributes either scope or calling guidance.

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?

There is no output schema, so the description's enumeration of returned fields (status, iterations, derivedDetails pricing/shipping, addons, original inputs) is genuinely necessary and present. What is missing is error/edge-case behavior for an invalid or unknown taskId.

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 schema already explains that taskId comes from create_checkout or create_search_checkout. The description only restates 'by taskId' without adding format, validity or lifecycle meaning. Baseline 3 is appropriate when the schema does the work.

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 ('Retrieves the full state of a CartAI checkout task by taskId') and enumerates what 'full state' covers — status, iterations, derivedDetails, addons, customer and product data. An agent can distinguish this read tool from create_checkout, cancel_checkout and get_checkout_estimates without opening any schema.

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

Usage Guidelines4/5

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

Gives explicit invocation guidance: 'Best called on a webhook event; polling is possible but not recommended.' That is a clear when-to-use and a discouragement of the wrong pattern. It stops short of naming a sibling alternative (e.g. get_status_history) for the cheap-status case, so it is strong but not exhaustive.

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