Skip to main content
Glama

Manage subscription

manage_subscription
Destructive

Cancel at the end of the period, resume a pending cancellation, refund the last payment (and end the plan now), or open the Stripe billing portal for invoices and the payment method. cancel and refund are two steps: the first call returns CONFIRMATION_REQUIRED with a confirmToken; tell the user exactly what will happen, then call again with the SAME arguments plus confirmToken. portal returns a single-use link.

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": {
      "action": "<action>"
    },
    "name": "manage_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
teamIdNoWorkspace (team) ID from billing_status. Omit when the user manages exactly one workspace.
confirmTokenNoLeave empty on the first call. Then pass the token from the CONFIRMATION_REQUIRED answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

With destructiveHint=true and idempotentHint=false already declared, the description adds real value by disclosing the CONFIRMATION_REQUIRED handshake, the confirmToken round-trip, the requirement to re-send identical arguments, and that refund terminates the plan immediately while portal links are single-use. It stops short of stating downstream effects such as what happens to workspace access or data after cancellation, or whether the refund is the full payment amount.

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?

Three dense sentences: capabilities first, the confirmation protocol second, the portal return value last. Every clause carries information an agent needs, with no restatement of the title or schema.

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 takes on the burden of describing returns and does so for the two non-obvious cases (CONFIRMATION_REQUIRED with confirmToken, single-use portal link). It does not say what a successful cancel or resume returns, which is a minor remaining gap for a destructive multi-action tool.

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?

Schema coverage is 67%, and the description compensates by explaining the confirmToken lifecycle (empty on first call, echoed from CONFIRMATION_REQUIRED on the second) and by giving each enum value operational meaning rather than just a label. The teamId parameter is only covered indirectly via the 'billing_status' reference, so the description does not fully close the gap.

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 all four operations (cancel, resume, refund, portal) with specific verb+resource semantics, and distinguishes cancel (end of period) from refund (ends the plan now) so an agent can pick the right action without opening the schema. It also ties teamId to billing_status, separating it from unrelated siblings like cancel_booking.

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?

Each action carries its own when-to-use signal: cancel for end-of-period termination, resume for undoing a pending cancellation, refund for immediate termination plus money back, portal for invoices/payment method. The guidance about when to use which is explicit and the two-step confirm flow is spelled out rather than left to inference.

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