Skip to main content
Glama

Upgrade plan

upgrade_plan

Change an admin-only subscription plan or list available plans; upgrades return a quote, then confirm with quote_token to charge the card on file.

Instructions

Change the SUBSCRIPTION plan (admin only). No argument lists the monthly plans. Each plan leads with what it is for. Every paid plan (Starter, Pro, Studio) includes Autopilot, unlimited posting and scheduling, monthly credits and no markup on models on every credit including extra packs; Starter is also the plan for someone who only posts and schedules. Basic is no longer sold (existing subscribers keep it): never offer it. The no-argument listing gives each plan's live price, monthly credits and sites (unlimited pages and landing pages on each site, so a business can keep every landing page on one); quote prices from it, never from memory. Every paid plan posts without a limit (Free: up to 10 posts on 3 channels). New subscriber: a Checkout URL for the human. Existing subscriber upgrading: a quote + quote_token; once the human agrees, call again with confirm:true and quote_token to charge the card on file. Downgrade: a billing-page link; it starts at the term's end.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upgrade_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNothe plan id to move to (e.g. pro) — omit to list the available plans first
offerNoa partner offer code (e.g. SECRET30): Starter free for 1 month — 300 credits during the month, then the normal monthly plan; card required, $0 today, cancel anytime before it renews
periodNomonthly only ('yr' buys monthly)
confirmNotrue (with quote_token) to make a quoted upgrade
quote_tokenNothe quoteToken from the quote step

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.688
    • addedInput schema / properties / offer
      Added value: +{
      +  "description": "a partner offer code (e.g. SECRET30): Starter free for 1 month — 300 credits during the month, then the normal monthly plan; card required, $0 today, cancel anytime before it renews",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.1.435
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "true (with quote_token) to make a quoted upgrade",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / period / description
      Previous value: -"billing cadence — monthly (default) or yearly (2 months free)"New value: +"monthly only ('yr' buys monthly)"
    • addedInput schema / properties / quote_token
      Added value: +{
      +  "description": "the quoteToken from the quote step",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv0.1.161
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "action": {
      -      "description": "the in-app action required ('upgrade' or 'downgrade')",
      -      "type": "string"
      -    },
      -    "chargeUsd": {
      -      "description": "the actual charge amount (yearly billing charges the annual total)",
      -      "type": "number"
      -    },
      -    "guidance": {
      -      "description": "exact instructions when the change must be made in the app",
      -      "type": "string"
      -    },
      -    "mode": {
      -      "description": "'checkout' (a Stripe URL was minted) or 'in_app' (a person makes the change in the app)",
      -      "type": "string"
      -    },
      -    "monthlyUsd": {
      -      "description": "the plan’s monthly price in USD",
      -      "type": "number"
      -    },
      -    "period": {
      -      "description": "billing cadence of the link — 'mo' or 'yr'",
      -      "type": "string"
      -    },
      -    "plan": {
      -      "description": "the target plan id",
      -      "type": "string"
      -    },
      -    "planLabel": {
      -      "description": "the target plan display name",
      -      "type": "string"
      -    },
      -    "plans": {
      -      "description": "available paid plans ({id, name, priceUsd, credits}) when listing",
      -      "items": {},
      -      "type": "array"
      -    },
      -    "url": {
      -      "description": "the ready-to-pay Stripe Checkout URL (checkout mode)",
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. Addedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, open-world, non-destructive mutation; the description adds the far more important operational facts — admin-only authorization, that a real card charge only occurs on the confirm:true step with quote_token, and that downgrades are deferred to term end rather than immediate. That is exactly the context an agent needs before a billing mutation.

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 with the action, then the listing behaviour, then per-persona flows — a logical order for a decision-heavy tool. It is dense but nearly every clause encodes a policy constraint; the one clear waste is the duplicated claim that paid plans allow unlimited posting/scheduling, stated in both the plan-detail sentence and the later "posts without a limit" sentence.

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?

For a five-parameter billing tool with no output schema, the description covers the return artifacts (Checkout URL, quote + quote_token, billing-page link), the sequencing, the authorization requirement, and the pricing-source rule. Nothing required to invoke it correctly across the three flows is missing.

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 100%, so the baseline is 3; the description earns an extra point by giving the two-call protocol that binds `confirm` and `quote_token` together and by clarifying that omitting `plan` triggers the listing. It does not add much beyond the schema for `offer` or `period`, which the schema already explains.

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?

Opens with a specific verb+resource ("Change the SUBSCRIPTION plan") plus a scope qualifier (admin only), and immediately explains the no-argument listing mode. That distinguishes it from adjacent billing siblings like billing_status or buy_credits without needing their descriptions.

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?

Explicitly segments the caller's situation and routes each: new subscriber gets a Checkout URL, existing subscriber upgrading gets quote + quote_token then confirm:true, downgrade gets a billing-page link that takes effect at term end. It also states a prohibition (never offer Basic) and a pricing rule (quote from the live listing, never from memory).

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