Skip to main content
Glama

Open the billing portal

billing_portal
Idempotent

Get a link to the Stripe customer portal, for a human to open: change plan, update the card, download invoices, or cancel.

This is the only way any of those happen. Galley's API cannot change or cancel a subscription and cannot issue a refund — deliberately — so if you are asked to downgrade or cancel, the answer is this link and a human on the other end of it. The link is single-use and short-lived, so fetch a fresh one rather than storing it.

Only works once the account has subscribed at least once; before that, use upgrade. Free.

If billing is not enabled on the deployment this is pointed at, the call is refused with billing_unavailable (503) rather than answered with a link. Say so and point the human at support@galleyrender.com. Do not construct a portal URL yourself and do not retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the link is single-use and short-lived, only works after a subscription exists, and is refused with a specific error if billing is not enabled. It also warns against constructing portal URLs manually, giving agents critical behavioral constraints the annotations do not cover.

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 detailed but every sentence earns its place: primary purpose first, then uniqueness, prerequisite, failure mode, and action guidance. The bolded error warning is placed prominently and the whole text remains scannable.

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?

Despite having no output schema, the description clearly conveys what is returned (a link) and what the agent should do with it. It covers prerequisites, alternatives, error handling, and follow-up steps, making it complete for correct invocation and downstream behavior.

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 has zero parameters and schema description coverage is 100%, so there is no parameter meaning the description must add. Per the baseline for zero-parameter tools, this earns a 4 rather than a lower score.

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 the exact deliverable ('a link to the Stripe customer portal'), the intended user ('a human to open'), and the supported actions (change plan, update card, download invoices, cancel). It explicitly distinguishes itself from sibling tool `upgrade`, so an agent can select it unambiguously.

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?

The description states exactly when to use it (human-driven plan/card/invoice/cancellation needs), when not to use it (before first subscription, use `upgrade`), and what to do on failure (`billing_unavailable`, point to support). It even forbids retries, leaving no ambiguity.

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