Skip to main content
Glama

billing_portal_create

Read-only

A Stripe-hosted page where a person changes plan, updates the card, downloads invoices or cancels. Only for an organisation that has paid before; one that has not starts with billing_checkout_create.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "return_url": "<return_url>"
    },
    "name": "billing_portal_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
return_urlYesWhere to send the person back to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already establish that this is read-only, non-destructive, and not idempotent. The description adds useful behavioral context by explaining that the result is a Stripe-hosted page and that the person can perform billing actions there, plus the paid-organization prerequisite. It does not explain session lifetime, return-value format, or what authentication or redirect behavior to expect.

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 two tight sentences with no filler. It front-loads what the page is for, then immediately states the eligibility rule and the alternative tool.

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?

For a one-parameter tool with annotations covering safety and idempotency, the description supplies the key eligibility constraint and sibling routing. The main gap is that it never explicitly says the tool returns or opens a portal URL, which an agent may need to know for the next step.

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 sole return_url parameter is fully documented in the schema. The description does not mention return_url or add format or validation details beyond the schema, so the baseline score of 3 is appropriate.

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 identifies the tool's purpose as opening a Stripe-hosted billing page where a user can manage plans, cards, invoices, and cancellation. It clearly distinguishes this from billing_checkout_create for organizations that have not paid before. It is clear, though it describes the page's capabilities rather than explicitly stating that the tool creates or returns a portal session.

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 gives an explicit eligibility rule: use this only for an organization that has paid before. It names the correct alternative, billing_checkout_create, for organizations that have not paid, leaving no ambiguity about routing.

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