Skip to main content
Glama

SMKlog Parcel Shipping Rates

Refund status of a checkout session

get_refund_status
Read-onlyIdempotent

Says whether the payment behind a create_checkout_link session was refunded, how much and why. Status: not_paid (nothing to refund), none (paid, not refunded), requested (a refund is under way), under_review (an operator decides: an unused non-USPS label or a request_label_void request), declined (the label was scanned; the carrier refused), partially_refunded or refunded; with amount_paid, amount_refunded, reason (unused_label: the automatic refund of a never-scanned label; void_request; other) and the refund policy in force. Unused USPS labels are refunded automatically; this tool only reads, it never starts a refund. SMKlog records only: no carrier call, no quote allowance.

Parameter rules:

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

  • An unknown or expired id answers session_not_found.

  • It reports on the checkout get_checkout_status reports.

  • No names, addresses, emails or card details.

  • 60 checks an hour per client, shared with get_checkout_status.

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_refund_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesThe session_id from create_checkout_link.

Output Schema

NameRequiredDescriptionDefault
nextYesWhat, if anything, the agent should do now
policyYesThe refund policy in force
reasonNo
statusYes
currencyYesISO currency, USD
order_idNoSMKlog order id, the reference for support; null before checkout
session_idYesThe session asked about
amount_paidYesUSD; 0 while not_paid
requested_atNoWhen the automatic unused-label refund was requested, ISO 8601
amount_refundedYesUSD refunded so far
void_requested_atNoWhen request_label_void filed a void request, ISO 8601

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / reason / enum
      Previous value: -[
      -  "unused_label",
      -  "other",
      -  null
      -]New value: +[
      +  "unused_label",
      +  "void_request",
      +  "other",
      +  null
      +]
    • addedOutput schema / properties / void_requested_at
      Added value: +{
      +  "description": "When request_label_void filed a void request, ISO 8601",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, closed-world), and the description adds substantial context beyond them: it never initiates a refund, makes no carrier call, consumes no quote allowance, keeps SMKlog records only, and returns session_not_found for unknown or expired ids. The 60-per-hour client limit shared with get_checkout_status is a notable operational fact a caller could not infer elsewhere.

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?

Front-loaded with the purpose, then structured into a status glossary and a bulleted 'Parameter rules' block. The status enumeration is long but functional; a few clauses (e.g. 'no quote allowance') border on incidental detail for a read-only status call.

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?

For a single-parameter read tool with an output schema, the description goes further than required, covering status meanings, refund reasons, error behavior, privacy limits, and rate limiting. An agent would not need to guess at anything before calling it.

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 already 100% with a regex pattern, so the baseline is 3; the description adds genuine meaning by stating the id must be the as_ plus UUID value from create_checkout_link and that no order id or email will work, which prevents a realistic misuse the pattern alone does not preclude.

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?

Opens with a specific verb and resource ('Says whether the payment behind a create_checkout_link session was refunded, how much and why') and enumerates the full status vocabulary, which lets an agent distinguish it from get_checkout_status and request_label_void immediately.

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?

It anchors the tool to the checkout that get_checkout_status reports on, notes that USPS labels are refunded automatically (so no action is needed there), and clarifies the tool only reads. It never explicitly says when to prefer this over a sibling or rules out any use, so it stops short of 5.

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.