Skip to main content
Glama

Billing portal link

get_billing_portal_link

Create a short-lived Stripe Billing Portal URL for an account owner to update their card, change plan, or cancel; return the link to the user instead of opening it.

Instructions

A short-lived Stripe Billing Portal URL where the account owner updates the card, changes plan or cancels. Give the link to the user; never open it yourself. Fails with not_stripe_tenant when the account is not billed through Stripe. Needs an admin key.

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

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue: validate and show what would happen without changing anything
idempotency_keyNoAny unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the link is short-lived, requires an admin key, and fails with a named error code when the tenant is not billed through Stripe. It omits whether each call mints a new session or reuses one, which matters for an agent deciding how often to call it.

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?

Three tight sentences, front-loaded with what the tool returns, then the handling rule, then the failure and auth conditions. Every sentence carries distinct operational information with no padding.

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?

An output schema exists so return values need not be explained, and the description covers the two things an agent cannot infer: the admin-key requirement and the not_stripe_tenant failure. The only gap is session lifecycle, which leaves a small ambiguity about repeat invocations.

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 description coverage is 100% and both parameters (dry_run, idempotency_key) are fully documented in the schema, so the baseline is 3. The description adds nothing about either parameter, not even that dry_run is the safe way to preview the call.

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 specific resource (a short-lived Stripe Billing Portal URL) and enumerates exactly what the account owner can do with it: update the card, change plan, or cancel. No sibling tool covers billing, so the scope is unambiguous on its own terms.

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 concrete handling instructions ('Give the link to the user; never open it yourself') and states the precondition for success ('Needs an admin key') plus the specific failure case (not_stripe_tenant). It does not name an alternative tool for non-Stripe accounts, but no such sibling appears in the catalog.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.