Skip to main content
Glama

upgrade

Upgrade to Pro or Premium, billed by the month or by the year. Always two steps: without confirmPaymentSpend the tool only reads the exact price from Polar and charges nothing; call it again with confirmPaymentSpend: true to get the Polar checkout URL. The payment itself happens on Polar's page, never here.

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": "upgrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesThe plan to buy.
intervalNoHow the plan is billed. Defaults to the year, which is the cheaper interval.
confirmPaymentSpendNoMust be true to create a checkout. Absent or false: read-only, the price is returned and nothing is charged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / interval
      Added value: +{
      +  "description": "How the plan is billed. Defaults to the year, which is the cheaper interval.",
      +  "enum": [
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true; the description goes well beyond them by explaining that the first invocation is effectively read-only and charges nothing, that the second returns a checkout URL, and that payment occurs on Polar's page 'never here.' This resolves the apparent tension between a non-readOnly annotation and a non-charging first call, which is exactly the context annotations cannot convey.

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 tight sentences with no filler: pricing/plans first, the two-step mechanic second, and the payment-location caveat last. The most decision-relevant fact (nothing is charged on the first call) is front-loaded within the second sentence.

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 3-parameter mutation-adjacent tool with no output schema, the description covers the workflow, the charge behavior, and where payment occurs. It does not state whether the subscription recurs or how long the returned checkout URL remains valid, which is a minor but real gap for a purchase tool.

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%, so the enumeration values and the confirmPaymentSpend semantics are already fully documented in the schema, including the note that the year interval is cheaper. The description restates the billing intervals and the confirm flag but adds no syntax, format, or edge-case detail beyond the schema, so the baseline 3 applies.

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 opens with a specific verb and resource: 'Upgrade to Pro or Premium, billed by the month or by the year.' It also states the scope (two plans, two intervals), which immediately distinguishes it from every sibling tool in the list (logging, task, performance reads).

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?

It explicitly prescribes the usage pattern: 'Always two steps: without confirmPaymentSpend the tool only reads the exact price from Polar and charges nothing; call it again with confirmPaymentSpend: true to get the Polar checkout URL.' That is a clear when-to-call-this-way and when-to-call-that-way rule, with no alternatives 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