Skip to main content
Glama

Checkout URL

billing_checkout_url

Generates a Stripe Checkout or Billing Portal URL for a selected plan and billing interval so a person can open it in a browser to pay or confirm the plan change.

Instructions

Hosted instances: a Stripe Checkout URL for a plan (or, when the account already pays, the Billing Portal page that confirms the plan change). Returns { url, kind: "checkout" | "change" }; a person must open it in a browser, an agent cannot pay. Plans and intervals come from get_billing.

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": {
      "plan": "<plan>"
    },
    "name": "billing_checkout_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesPlan name from get_billing (e.g. creator, pro)
intervalNoBilling interval: month (default) or yearmonth
fromProjectIdNoThe project the upgrade is for: once the plan changes it is finished and rendered without the watermark by itself

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / fromProjectId
      Added value: +{
      +  "description": "The project the upgrade is for: once the plan changes it is finished and rendered without the watermark by itself",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Addedv0.17.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only supply destructiveHint=false, so the description carries the real load and does so well: it discloses the return shape ({ url, kind: "checkout" | "change" }) and the conditional branch where an existing payer gets a portal confirmation page instead of a checkout. It omits operational details such as URL expiry, auth prerequisites, or failure behavior, which keeps it from a 5.

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?

Two dense sentences with zero filler, front-loaded with the 'Hosted instances:' scope qualifier and followed immediately by the return contract and the human-interaction constraint. Every clause carries information an agent needs.

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?

With no output schema, the description compensates by describing the returned object and its kind discriminator, plus the policy that an agent cannot complete payment. For a three-parameter tool this is nearly sufficient; missing only edge cases like URL lifetime or what happens if the plan is already active.

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 coverage is 100% and each parameter is already documented, including that plan names come from get_billing. The description's note that plans and intervals come from get_billing largely restates the schema, and it adds nothing about fromProjectId's side effect beyond what the schema already says.

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?

Names a concrete resource (Stripe Checkout URL for a plan) and even the conditional variant (Billing Portal page for accounts already paying), which is far more specific than the title. It stops short of distinguishing itself from the sibling billing_portal_url, so an agent still has to reason about which URL tool to pick.

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?

Gives clear usage context: hosted instances only, and plans/intervals must be sourced from get_billing first. It also states the hard constraint that a human must open the URL because an agent cannot pay, which shapes how the agent should use the result. It does not explicitly say when to prefer this over billing_portal_url.

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

Deploy Server

Other Tools