Skip to main content
Glama

upgrade

upgrade

Start buying Compass OS for the user: Plus or Pro (monthly or yearly), the Search Pass (Pro for 30 days, once) or a credit pack (100 AI credits that never expire, once). Use it when they ask to upgrade, or to get more AI credits after a limit. It asks first in a card with the price and whether it renews; their Yes opens Stripe's payment page, where they pay themselves. It never charges anything on its own. When their plan already covers it, it says so instead (a plan is switched in Settings, Manage billing). Returns the payment 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": {
      "product": "<product>"
    },
    "name": "upgrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYesplus or pro for a plan; pass for the Search Pass (Pro for 30 days, once); pack for a credit pack (100 AI credits, once)
intervalNoFor plus or pro: monthly (the default) or yearly; leave empty for pass and pack

Output Schema

NameRequiredDescriptionDefault
textYesThe answer, or what was done, in plain words for the user: the same text as content
undoNoOn a saved write: its undo handle, for undo within 24 hours
widgetNoThe card the host draws with it, e.g. "pipeline"; "confirm" means a write waits for the user's Yes and nothing is saved yet

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-read-only, open-world, non-idempotent, non-destructive; the description adds the decisive behavior: it asks first in a card with price and renewal terms, the user's Yes opens Stripe's own payment page, and 'It never charges anything on its own.' It also discloses the return ('the payment link') and the fallback outcome when a plan already covers the purchase.

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 purpose, then triggers, then the confirmation/payment flow, then the return value — a logical order with no filler sentences. It is slightly dense because the product enumeration partly duplicates the schema enum descriptions, costing a little space but not clarity.

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?

Output schema exists, so return-value detail is covered; annotations cover the safety profile. What remains — who pays, when money moves, what happens if the plan already covers it, and which channel handles plan changes — is all answered, so an agent can invoke this without further questions.

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 enum meanings are already documented. The description still adds real meaning: 'yearly' renewal framing, that pass is 'Pro for 30 days, once', and that pack credits 'never expire' — details not in the schema text. It does not, however, restate the monthly default or the rule to leave interval empty, though the field is cheap to infer.

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 — 'Start buying Compass OS for the user' — and enumerates the exact product set (Plus/Pro monthly-or-yearly, Search Pass, credit pack). An agent can tell this is a purchase-initiation tool and not a settings change or a generic write, since the description explicitly says plan switching happens in Settings, Manage billing.

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 explicit triggers ('when they ask to upgrade, or to get more AI credits after a limit') and an explicit not-for case ('When their plan already covers it, it says so instead') with the real alternative path ('a plan is switched in Settings, Manage billing'). Both the when and the when-not, plus the routing, are stated in the text.

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