Skip to main content
Glama

billing

Destructive

Use action=balance only when the user asks to inspect credits; do not preflight credit-consuming work. Use action=plans to compare live subscriptions before recommending a purchase. Create checkout only after the user chooses. Use refund-quote before refund, then pass its quote ID with explicit confirmation. Portal, invoices, and trial-status actions manage the existing account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowNoCustomer portal flow
limitNoMaximum invoice count
actionNoCheck balance, compare plans, or manage billing for the current accountbalance
contextYesExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
surfaceNoPlan catalog: loadout or aidentloadout
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
trialCodeNoTrial invite code for checkout
refundQuoteIdNoQuote ID returned by the refund-quote action
priceLookupKeyNoPlan returned by the plans action
refundConfirmationNoRequired confirmation for a Credit Boost refund

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "context",
      +  "llm_model"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / priceLookupKey / enum
      Previous value: -[
      -  "free",
      -  "basic_monthly",
      -  "basic_yearly",
      -  "pro_monthly",
      -  "pro_yearly",
      -  "max_monthly",
      -  "max_yearly",
      -  "loadout_basic_monthly",
      -  "loadout_pro_monthly",
      -  "loadout_team_monthly",
      -  "loadout_credit_boost_950",
      -  "loadout_credit_boost_1950",
      -  "loadout_credit_boost_5000",
      -  "loadout_credit_boost_950_subscriber",
      -  "loadout_credit_boost_1950_subscriber",
      -  "loadout_credit_boost_5000_subscriber"
      -]New value: +[
      +  "free",
      +  "basic_monthly",
      +  "basic_yearly",
      +  "pro_monthly",
      +  "pro_yearly",
      +  "max_monthly",
      +  "max_yearly",
      +  "loadout_basic_monthly",
      +  "loadout_pro_monthly",
      +  "loadout_team_monthly",
      +  "loadout_credit_boost_950",
      +  "loadout_credit_boost_1950",
      +  "loadout_credit_boost_5000",
      +  "loadout_credit_boost_950_subscriber",
      +  "loadout_credit_boost_1950_subscriber",
      +  "loadout_credit_boost_5000_subscriber",
      +  "loadout_credit_boost_1000",
      +  "loadout_credit_boost_2000",
      +  "loadout_credit_boost_5000_v2",
      +  "loadout_credit_boost_10000",
      +  "loadout_credit_boost_20000",
      +  "loadout_credit_boost_1000_subscriber",
      +  "loadout_credit_boost_2000_subscriber",
      +  "loadout_credit_boost_5000_v2_subscriber",
      +  "loadout_credit_boost_10000_subscriber",
      +  "loadout_credit_boost_20000_subscriber"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / priceLookupKey / enum
      Previous value: -[
      -  "free",
      -  "basic_monthly",
      -  "basic_yearly",
      -  "pro_monthly",
      -  "pro_yearly",
      -  "max_monthly",
      -  "max_yearly",
      -  "loadout_basic_monthly",
      -  "loadout_pro_monthly",
      -  "loadout_credit_boost_950",
      -  "loadout_credit_boost_1950",
      -  "loadout_credit_boost_5000"
      -]New value: +[
      +  "free",
      +  "basic_monthly",
      +  "basic_yearly",
      +  "pro_monthly",
      +  "pro_yearly",
      +  "max_monthly",
      +  "max_yearly",
      +  "loadout_basic_monthly",
      +  "loadout_pro_monthly",
      +  "loadout_team_monthly",
      +  "loadout_credit_boost_950",
      +  "loadout_credit_boost_1950",
      +  "loadout_credit_boost_5000",
      +  "loadout_credit_boost_950_subscriber",
      +  "loadout_credit_boost_1950_subscriber",
      +  "loadout_credit_boost_5000_subscriber"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / priceLookupKey / enum
      Previous value: -[
      -  "free",
      -  "basic_monthly",
      -  "basic_yearly",
      -  "pro_monthly",
      -  "pro_yearly",
      -  "max_monthly",
      -  "max_yearly",
      -  "loadout_basic_monthly",
      -  "loadout_credit_boost_950",
      -  "loadout_credit_boost_1950",
      -  "loadout_credit_boost_5000"
      -]New value: +[
      +  "free",
      +  "basic_monthly",
      +  "basic_yearly",
      +  "pro_monthly",
      +  "pro_yearly",
      +  "max_monthly",
      +  "max_yearly",
      +  "loadout_basic_monthly",
      +  "loadout_pro_monthly",
      +  "loadout_credit_boost_950",
      +  "loadout_credit_boost_1950",
      +  "loadout_credit_boost_5000"
      +]
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations carry destructiveHint=true and readOnlyHint=false, so the agent already knows operations may be destructive. The description adds value beyond the annotations by specifying the safe sequencing: obtain a refund-quote first, then pass its ID with an explicit confirmation constant. This is genuinely useful behavioral context for a destructive tool and does not contradict the annotations.

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?

Four tight sentences with zero filler, each covering a coherent action group. The most safety-critical guidance (balance non-preflight rule, refund confirmation sequence) is front-loaded. It is concise and well-organized, though a one-line opening stating the tool's general purpose would have made it slightly stronger.

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 10-parameter tool with 4 enums and no output schema, the description covers the main flows well: the refund pipeline, the checkout gating, and the balance/plans distinction. The portal, invoices, and trial-status actions are summarized in a single line, which is sufficient given they manage the existing account. Minor gaps remain around what each of those less-common actions returns, but nothing critical is missing for correct invocation.

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%, so every parameter already has a description, giving a baseline of 3. The description does reinforce the cross-parameter flow (refund-quote returns a quote ID that becomes refundQuoteId, paired with refundConfirmation), which adds slight connective meaning, but it does not introduce new format or syntax details beyond the schema. The baseline of 3 is appropriate.

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 never states an overarching purpose sentence, but each action's verb+resource is explicit: balance for inspecting credits, plans for comparing subscriptions, checkout, refund-quote, refund, portal, invoices, trial-status. The per-action clarity compensates for the missing single 'manages billing for the current account' statement, so it is clear but not maximally direct.

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?

This is exemplary routing guidance. It explicitly says when to use balance ('only when the user asks to inspect credits'), when not to ('do not preflight credit-consuming work'), when to use plans, and the exact sequencing for checkout ('only after the user chooses') and refund ('use refund-quote before refund, then pass its quote ID with explicit confirmation'). No inference is required.

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