Skip to main content
Glama

Credit purchase status

get_topup_status
Read-only

Whether a credit-pack Checkout has been paid.

session_id is the cs_… id from create_topup_checkout. paid means the grant is on the account. open means the buyer has not finished. processing means Stripe has the payment and the grant is not written yet. expired means the Checkout closed unpaid. A subscription session is not a pack; call get_plan for the plan on this key.

Talk to the user in plain words: no tool, parameter or field names. Say "the American Spend model", never "panel" or a data source.

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

Input Schema

NameRequiredDescriptionDefault
session_idYesThe cs_… id returned by create_topup_checkout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare this a safe read, so the description's real contribution is decoding the result states: paid = grant on account, open = buyer unfinished, processing = Stripe has payment but grant not written, expired = Checkout closed unpaid. That is exactly the behavioral detail an agent needs and cannot get from the annotations, especially with no output schema.

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?

The status semantics are front-loaded and each sentence earns its place, with the sibling routing placed immediately after the core purpose. The closing paragraph about plain-word user communication is a general style directive rather than tool-specific information, which slightly dilutes focus.

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?

With no output schema, the description must explain the return values and does so for every state the tool can report, including the non-obvious processing case. Nothing an agent needs to interpret a call's result is missing.

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 there is only one required parameter, so the schema already carries the syntax. The description adds provenance ('from create_topup_checkout'), which is mildly useful for chaining but largely restates the schema's own parameter description.

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 check ('whether a credit-pack Checkout has been paid') on a specific resource, and explicitly scopes out the adjacent case: 'A subscription session is not a pack; call get_plan for the plan on this key.' An agent can separate this from create_topup_checkout and get_plan 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?

Usage is anchored to create_topup_checkout via the session_id provenance, and the description names the correct alternative (get_plan) for subscription sessions. It stops short of saying when in the flow to poll or whether repeated calls are expected, which keeps it below a 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.