Skip to main content
Glama

get_billing

Billing status + a Stripe checkout link when a NEW subscription is needed.

`plan` is one of starter | pro | agency (default starter). When the
workspace has NO live subscription and needs one (open-signup unpaid,
churned, or converting from a free/trial tier), returns a `checkout_url`
with next_action "browser" — send it to the user to open in a browser (the
one setup step that can't happen in chat). Compute unlocks automatically
once payment completes (a Stripe webhook flips the workspace to active);
you do not need to block on it. A past_due workspace gets NO checkout —
the fix is a card update in the dashboard billing page (a new checkout
would create a second subscription); follow next_step. Subscribed or
suspended-with-subscription states return checkout_url=None with an
explanatory next_step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planNostarter

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

All annotations are false, so the description carries the full burden and delivers richly: it discloses that payment completion flips the workspace to active asynchronously via a Stripe webhook, warns that a past_due workspace must not receive a checkout to avoid creating a duplicate subscription, and specifies per-state response shapes (checkout_url vs None with next_action/next_step). No contradiction with readOnlyHint=false or 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?

The description is front-loaded with a one-line summary, and the remaining roughly 140 words are dense with non-redundant operational details. Every sentence addresses a distinct billing state or hazard; there is no filler or repetition of schema content.

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 tool with an output schema present, the description covers every agent-relevant decision: when to send checkout links to a browser, the async webhook unlock behavior, the past_due exclusion, and subscribed/suspended return behavior. The only minor omission — error handling for an invalid plan value — is negligible given the documented enum.

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 0% with no enums, so the description must compensate and does: it enumerates valid values ('starter | pro | agency') and the default ('default starter'). It stops short of explaining how plan maps to checkout pricing or limits, but for a single well-named parameter the semantic role is clear from context.

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?

The opening sentence states a specific verb and resource ('Billing status + a Stripe checkout link') with a precise condition ('when a NEW subscription is needed'). It distinguishes from all sibling tools — none other handles billing — and the remaining text clarifies boundary cases (past_due, subscribed, suspended) rather than obscuring the core purpose.

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?

The description gives explicit conditional routing: generate a checkout_url and send it to the user for open-signup unpaid, churned, and free/trial states; never issue a checkout for past_due workspaces, with the rationale that it would create a second subscription; follow next_step for subscribed/suspended states. It also tells the agent when not to act — 'you do not need to block on it' — and describes the dashboard card-update alternative by action rather than by tool name.

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.