Skip to main content
Glama

Link to cancel or change a subscription

billing_portal_link

For an owner with a subscription: a one-time Stripe customer-portal link. Give it to the owner and say: "Open this to cancel or change your card." The owner opens it in their browser (you can't use it for them). It expires about 5 minutes after it is made, so ask for it when they are ready, and call this tool again for a new one. For accounts without a subscription (one-time licenses never renew) the answer is a plain message and no link. Needs the checkout:create permission (the link can cancel a subscription and shows billing details, so a download-only key can't get one).

Input Schema

NameRequiredDescriptionDefault

No arguments

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?

Beyond the annotations, the description discloses the approximately five-minute expiry, one-time nature, browser-only use by the owner, the checkout:create permission requirement, and that the link can cancel a subscription and shows billing details. These are material operational facts an agent could not infer from the annotations alone.

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 the core purpose and then layers in the actionable caveats: owner action, expiry, no-subscription path, and permission gate. Each sentence carries distinct operational information.

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?

Given the tool has no parameters and no output schema, the description supplies the missing behavioral context: what the agent should do with the result, what the owner must do, how long the link lasts, and what happens for accounts without subscriptions. Nothing needed to invoke or interpret the tool appears absent.

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?

The tool takes zero parameters, so the schema is not the source of ambiguity. The description correctly implies no arguments are needed. A baseline score of 4 is appropriate because there are no parameters to explain.

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 gives a specific verb and resource: generate a one-time Stripe customer-portal link for an owner with a subscription. It explicitly separates the subscribed case from the no-subscription case, so the agent can tell what this tool will and will not produce.

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?

It states exactly when to use the tool (owner with a subscription needs to cancel or change a card) and when not to use it (accounts without a subscription get a plain message and no link). It also advises asking for the link only when the owner is ready and calling again for a new one after expiry.

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