Skip to main content
Glama

upgrade_subscription

DestructiveIdempotent

Upgrade to a strictly higher plan. MONEY: charges the saved card exactly the quoted amount (prorated). Owner only. Call without confirm for the quote and preview_id; after the user agrees, call with confirm=true, that preview_id, the expected_ fields and proration_date. A changed price is refused. If the quote mentions AI agent access, mention that option once. Set add_api_addon true only when the user asks to add it. 3D Secure or a decline returns a payment link; nothing changes.

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": {
      "tier": "<tier>"
    },
    "name": "upgrade_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierYes
confirmNo
intervalNo
preview_idNo
workspace_idNo
add_api_addonNoAdd AI agent access on this upgrade. Set only when the user asks. Never set it on your own.
proration_dateNo
expected_intervalNo
expected_amount_centsNo
expected_current_tierNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / add_api_addon
      Added value: +{
      +  "description": "Add AI agent access on this upgrade. Set only when the user asks. Never set it on your own.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / expected_amount_cents
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / proration_date
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds material context they don't carry: an exact prorated charge to the saved card, refusal when the quoted price changed, and that a 3DS challenge or decline returns a payment link with nothing changed. That failure-mode disclosure is valuable. It stops short of describing the full success response or rate/retry behavior, so a 4 rather than 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and dense: the money consequence, ownership requirement, and call sequence come in the first few sentences with no filler. The telegraphic 'MONEY:' styling and stacked clauses make it slightly harder to scan, but nearly every sentence carries an actionable constraint.

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 destructive, money-moving tool with 10 parameters and no output schema, the description covers the critical risk surface: who may call it, when a charge occurs, price-change refusal, and failure outcomes. Gaps remain around the default billing interval, workspace_id semantics, and what a successful confirmation returns.

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 description coverage is only 10% (one field), so the description must compensate and largely does: it explains the confirm/preview_id two-step, the role of the expected_ fields and proration_date, and repeats the add_api_addon constraint. It leaves interval, workspace_id, and the expected_* enum semantics unaddressed, so it is not exhaustive.

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?

States a specific verb and resource with a scope constraint: 'Upgrade to a strictly higher plan.' The word 'strictly' plus 'Upgrade' distinguishes it cleanly from the sibling downgrade_subscription, and the agent can tell what the tool does without opening the schema.

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?

Gives an explicit two-step protocol: call without confirm to obtain a quote and preview_id, then call with confirm=true plus the expected_ fields and proration_date after the user agrees. It also states the owner-only restriction and the rule to set add_api_addon only on explicit user request, which is genuine when/when-not guidance.

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