Skip to main content
Glama

Get the billing portal link

billing_portal_link
Destructive

A Stripe Customer Portal link for your account: payment method, invoices and cancellation. To cancel, call it with cancel: true (and accounts: "all" for every account you own): that changes nothing and answers the accounts with their businesses, a warning to read to the person, and a confirmation_id. Only after they say yes, call it again with just the confirmation_id for one cancellation link per account. billing_not_enabled until billing starts.

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": "billing_portal_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
cancelNoAsk to cancel: answers the warning and a confirmation_id, and changes nothing.
accountNoThe account to act for, by its owner's email or the domain of a business it tracks, as list_businesses shows them. Needed only when you're on more than one account's team.
accountsNoWith cancel: every account you own, instead of one.
confirmation_idNoThe id the cancel call answered, alone, after the person said yes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "The account to act for, by its owner's email or the domain of a business it tracks, as list_businesses shows them. Needed only when you're on more than one account's team.",
      +  "maxLength": 254,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / accounts
      Added value: +{
      +  "const": "all",
      +  "description": "With cancel: every account you own, instead of one.",
      +  "type": "string"
      +}
    • removedInput schema / properties / companies
      Removed value: -{
      -  "const": "all",
      -  "description": "With cancel: every company you own, instead of one.",
      -  "type": "string"
      -}
    • removedInput schema / properties / company
      Removed value: -{
      -  "description": "The company to act for, by its domain (for example aioseo.com), one of those list_companies shows. Needed only when your key reaches more than one company.",
      -  "maxLength": 300,
      -  "minLength": 1,
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • changedInput schema / properties / company / description
      Previous value: -"The company to act for, by its Trustpilot domain (for example aioseo.com), one of those list_companies shows. Needed only when your key reaches more than one company."New value: +"The company to act for, by its domain (for example aioseo.com), one of those list_companies shows. Needed only when your key reaches more than one company."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses the crucial two-phase protocol: the cancel:true call is a no-op preview returning the affected accounts, a warning to relay, and a confirmation_id; only the confirmation_id call produces actual cancellation links. It also surfaces the billing_not_enabled error state, which the annotations cannot convey. The 'changes nothing' claim applies to the preview call and is consistent with destructiveHint=true on the completed flow.

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?

Purpose is front-loaded and every clause carries information, including the error state at the end. The phrasing is dense and slightly run-on (nested parentheses and colons in one sentence), which costs some readability, but there is no filler.

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 destructive two-step flow with no output schema, the description supplies the return payload shape (accounts, warning, confirmation_id), the consent gate, and the failure state. Nothing an agent needs to call this correctly is missing.

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%, so the baseline is 3, but the description adds meaning the schema cannot: cancel must be paired with the confirmation_id follow-up, accounts:'all' scopes to every owned account, and confirmation_id must come from the prior call's answer and be sent alone. That sequencing semantics is genuine added value.

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 description names a concrete artifact (a Stripe Customer Portal link) and its scope (payment method, invoices, cancellation), plus a second mode (cancellation). An agent can immediately tell this returns a billing self-service link, not a checkout or filing artifact like the siblings.

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?

It gives explicit sequencing: call with cancel:true first (which changes nothing), read the warning to the person, then only after consent call again with just the confirmation_id. That is unusually clear procedural guidance. It stops short of naming when to prefer this over a sibling such as get_checkout_link, so it isn't a full when/when-not/alternative treatment.

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