Skip to main content
Glama
SMKlog Parcel Shipping Rates

SMKlog Parcel Shipping Rates

Check a checkout session

get_checkout_status
Read-onlyIdempotent

Check a checkout session's status to see if the human opened checkout, paid, or has a label ready with tracking; pass the session_id from create_checkout_link.

Instructions

Reports where a create_checkout_link session stands: whether the human opened checkout, paid, and whether the label exists, with the tracking number once it does. Reads SMKlog's own records only: no carrier call, no quote allowance, nothing changes. Poll minutes apart: nothing moves until the human acts.

Statuses, in order: awaiting_checkout, checkout_started, paid (label not bought yet), label_ready (tracking_number present; pass it to track_parcel), delivered, refunded.

Parameter rules:

  • session_id is the as_ plus UUID id from create_checkout_link; no order id, email or quote_id works.

  • A session lives 30 days; an unknown, malformed or expired id answers session_not_found.

  • The answer never carries names, addresses or emails; whoever holds the session_id can read the tracking number.

  • A manual-review request is not a checkout: the status stays awaiting_checkout.

  • 60 checks an hour per client.

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": {
      "session_id": "<session_id>"
    },
    "name": "get_checkout_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesThe session_id from create_checkout_link.

Output Schema

NameRequiredDescriptionDefault
nextNoWhat, if anything, the agent should do now
amountNoThe amount the session was anchored to, USD
statusYesStage, in that order
serviceNoThe service the session was anchored to
checkoutNoThe checkout the human started, null while awaiting_checkout
currencyNoISO currency, USD
created_atNoWhen create_checkout_link made the session, ISO 8601
expires_atNoWhen the session stops answering, ISO 8601
session_idYesThe session asked about
quote_reusedNoWhether the session reused a quote_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds substantial unannotated behavior: a 60-checks-per-hour client rate limit, a 30-day session lifetime, the session_not_found failure mode, and the privacy property that no names/addresses/emails are returned. These are operational facts an agent cannot derive from structured fields.

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?

Front-loaded with the core answer, then a compact status ladder, then a short bulleted rules block. Every sentence carries a distinct fact; nothing is restated from the schema or annotations.

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?

An output schema exists, yet the description still usefully names the ordered status set and the tracking-number handoff. For a single-parameter polling read tool, nothing an agent needs to call it correctly or interpret the result 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?

Schema coverage is 100% and the pattern already encodes the as_ prefix, so the baseline is 3. The description earns above baseline by ruling out wrong inputs ('no order id, email or quote_id works') and by mapping the expired/unknown case to session_not_found, which the regex alone cannot convey.

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 ('Reports where a create_checkout_link session stands') and enumerates the exact statuses returned. The tie back to create_checkout_link makes it instantly distinguishable from siblings like track_parcel or get_refund_status.

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 guidance ('Poll minutes apart: nothing moves until the human acts') and routes the agent forward ('tracking_number present; pass it to track_parcel'). It also names what this is not (no carrier call, a manual-review request is not a checkout), which is exactly the kind of alternative framing that prevents misuse.

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