Skip to main content
Glama

Check a purchase

get_purchase_status
Read-only

Get the payment, fulfillment, or refund status of an owned Pay & Send or letter-pack purchase.

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": {
      "orderId": "<orderId>"
    },
    "name": "get_purchase_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYes

Output Schema

NameRequiredDescriptionDefault
lettersNo
messageYes
orderIdYes
currencyYes
letterIdNo
mailTypeNo
updatedAtYes
amountCentsYes
orderStatusYes
perLetterCentsNo
purchaseStatusYes
scheduleMissedNo
lettersRefundedNo
lettersRemainingNo
checkoutExpiresAtNo
productDescriptionYes
amountRefundedCentsNo
refundableAmountCentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/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 the safety profile is covered. The description adds genuine value by enumerating the three status facets returned (payment, fulfillment, refund) and the ownership restriction, but says nothing about failure behavior for an unknown or foreign orderId — notable given idempotentHint=false.

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?

A single tight sentence that front-loads the verb and the resource with zero filler. Every clause earns its place by narrowing scope and listing the status facets.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the annotations cover the safety profile. What is missing is the identifier contract for orderId and any differentiation from the adjacent status tools (get_order_status, get_draft_status), which matters in a family with three 'get_*_status' siblings.

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

Parameters2/5

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

There is a single required parameter, orderId, with 0% schema description coverage, so the description carries the full burden of explaining it. It never states the expected format, whether it is a purchase/order identifier versus a letter-pack identifier, or where the agent should obtain it (e.g., from list_orders). This is a clear gap given the total absence of schema documentation.

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?

The description names a specific verb ('Get') and a precise resource/scope ('payment, fulfillment, or refund status of an owned Pay & Send or letter-pack purchase'). An agent can distinguish it from siblings like list_letter_packs or send_letter, though the boundary with get_order_status and get_draft_status is never drawn.

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?

It implies the usage context by restricting to 'owned' purchases, which tells the agent this is a post-purchase lookup rather than a pre-purchase quote. However, it gives no explicit when-to-use versus get_order_status or get_draft_status, and no prerequisite such as where an orderId comes from.

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