Skip to main content
Glama

Get billing portal link

get_billing_portal_link

Creates a link to the user's secure Stripe billing portal, where they update their card, switch between monthly and yearly, download invoices or cancel Pro (effective at the end of the paid period). Returns { url }, opened by the user. Only available to users who have or had a subscription.

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
languageNoLanguage of the Stripe page: en (default) or fr. Usually the conversation's language.en

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, it discloses what the returned link is for, that the agent must hand the { url } to the user rather than fetching it, and that cancellation takes effect at the end of the paid period rather than immediately. The readOnlyHint=false is consistent with creating a portal session; nothing contradicts it. It could still say whether the link expires or is single-use.

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?

Purpose is front-loaded in the first clause, followed by two short sentences covering the return value and the eligibility constraint. The parenthetical about end-of-period cancellation is compact and each sentence carries useful information with 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 zero-required-parameter link generator with no output schema, the description covers purpose, return shape ({ url }), who must open it, eligibility, and cancellation timing. An agent has everything needed to decide whether to call it and how to handle the result.

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 the single optional language parameter already documents the en/fr enum and its default, so the schema does the heavy lifting. The description adds no information about the language parameter (e.g., that it should match the conversation language), which is the one piece of meaning it could have contributed.

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 gives a specific verb and resource ("Creates a link to the user's secure Stripe billing portal") and even enumerates the downstream actions available there (update card, switch monthly/yearly, download invoices, cancel Pro). It is clear what the tool produces, but it never names a sibling such as get_upgrade_link or get_plan to distinguish the billing-management case from the upgrade case, so it stops short of a 5.

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?

"Only available to users who have or had a subscription" is an explicit eligibility condition telling the agent when this call is valid and implicitly when not to try it. There is no explicit routing to an alternative tool for users without a subscription (e.g., an upgrade path), so it is clear context without named alternatives.

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