Skip to main content
Glama

asksteps: move a paid account to another plan

asksteps_change_plan
Idempotent

Moves an account that already pays to a different plan. THIS SPENDS THE CUSTOMER'S MONEY. Requires "billing:write", the account owner, and a purchase mandate the owner granted in the studio with a maximum plan, a spending cap and an expiry date. The first call NEVER changes anything: it returns "confirmation_required" together with the exact net price. Read that price to the user, get their agreement, and only then call again with confirm = true. A downgrade needs the mandate to allow it, because shrinking limits can switch features off. If the account has no subscription with the payment provider yet, you get "checkout_required" and a link — a first purchase is not something an agent can complete. Every executed change is emailed to the account owner.

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_code": "<plan_code>"
    },
    "name": "asksteps_change_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true only AFTER you told the user the price and they agreed. Without it nothing is charged.
intervalNo"month" (default) or "year". A yearly change commits twelve months at once.
plan_codeYesPlan code to move to.

Output Schema

NameRequiredDescriptionDefault
urlNoLink where the user completes the purchase themselves. Give it to them verbatim.
noteYesOne sentence for the user. On "confirmation_required" it names the plan, the price and what changes — read it out before asking.
statusYesOutcome. One of: "changed" (the plan is now different), "confirmation_required" (read the note to the user and call again with confirm = true if they agree), "checkout_required" (give them the url; only they can enter payment details), "not_allowed" (outside the mandate — the note says which limit), "rate_limited" (too many plan changes in the last minute — wait a minute; nothing was charged), "not_connected", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do.
intervalNoThe billing interval this price refers to: "month" or "year".
planCodeNoThe plan code after the change, when something changed.
priceCentsNoThe net price per interval in cents, so you can state it exactly instead of estimating.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."New value: +"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"rate_limited\" (too many plan changes in the last minute — wait a minute; nothing was charged), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."
  2. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"owner_required\" (only the account owner may do this), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."New value: +"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=false; the description adds the information that actually matters — real money is spent, the first call is a no-op preview returning the exact net price, downgrades can disable features, and every executed change is emailed to the owner. Nothing here contradicts the annotations, since no data is destroyed and repeating the confirmed call is stable.

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-loads the action and the risk in the first two sentences, then proceeds through mandate requirements, the confirmation flow, downgrade caveats, the checkout edge case and the notification. Every sentence carries distinct behavior, though the imperative instructions to the agent make it slightly denser than strictly necessary.

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 money-moving mutation with an output schema present, the description covers everything an agent needs to act safely: authorization, ordering of calls, failure modes (checkout_required), irreversible-side-effect warnings and post-execution notification. Return-value shape is legitimately left to the output schema.

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 100%, so baseline is 3, but the description adds real meaning beyond the schema: it explains what the mandate's maximum plan implies for which plan_code values are legal, that a downgrade requires mandate permission, and it reinforces why confirm must never be set speculatively. The interval parameter is left entirely to the schema, which is a small remaining 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?

States a specific verb and resource ('Moves an account that already pays to a different plan') and scopes it to paying accounts only, so an agent can immediately tell it apart from read-oriented siblings such as asksteps_get_subscription.

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 prerequisites (billing:write, account owner, purchase mandate with plan cap, spending cap and expiry), the exact two-step protocol (preview call, read price to user, then confirm=true), and an explicit exclusion: first purchases return checkout_required and an agent cannot complete them.

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