Skip to main content
Glama

Get Payment Setup Status

get_payment_setup_status
Read-onlyIdempotent

Whether the account can pay for an order: saved payment method and billing details (country, name) for the first paid order. When something is missing (or with includeSetupLink=true) it returns paymentSetup.url, a 60-minute link the user opens in their browser to set the billing country and add a payment method. Use it when preview_order reports NO_PAYMENT_METHOD or BILLING_PROFILE_INCOMPLETE, and after the user says they are done. Never ask for card details in the chat. Read-only apart from issuing the link.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_payment_setup_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeSetupLinkNotrue to also get a setup link when nothing is missing, e.g. because the user wants to change their payment method before ordering. A link is always included when something is missing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, but the description adds genuinely new context: the link is minted server-side, expires after 60 minutes, and must be opened by the user in a browser. 'Read-only apart from issuing the link' honestly reconciles the mutation-ish side effect with the readOnlyHint. It stops short of covering edge cases such as what the status shows after the link expires unopened.

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 core semantics, then conditional return behavior, then call conditions and the safety rule. No filler sentences, though the opening clause is telegraphic ('Whether the account can pay for an order: ...') and reads as a fragment.

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?

For a zero-required-parameter, single-optional-parameter tool with no output schema, it covers the meaningful return shapes (status fields vs. paymentSetup.url) and the interaction flow. Minor gap: nothing about the format or freshness of the returned status itself, which the agent must infer.

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 single boolean is documented, so the baseline is 3; the description earns a bump by explaining *why* the flag exists ('as a link is always included when something is missing') and what changes in the response when it is true.

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 predicate it evaluates ('whether the account can pay for an order') and the concrete data behind it (saved payment method, billing country/name for the first paid order), plus what it returns when data is missing (paymentSetup.url). An agent can distinguish this from sibling status tools like preview_order without opening the schema.

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 triggers: call it when preview_order reports NO_PAYMENT_METHOD or BILLING_PROFILE_INCOMPLETE, and again after the user says they are done. Also names the alternative use case for includeSetupLink=true (user wants to change method before ordering) and a hard constraint ('Never ask for card details in the chat').

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