Skip to main content
Glama

Update monthly plan

update_subscription
DestructiveIdempotent

Change this account's monthly plan; send at least one of tier, cancelAtPeriodEnd and exhaustionMode. Applied directly: a lower tier (takes effect from the next period, the current tier and credit stay), cancelAtPeriodEnd true (the plan ends after the paid period) and exhaustionMode cap (also turns off automatic top-up). NOT applied from here: a higher tier, cancelAtPeriodEnd false (resuming a plan set to end) and exhaustionMode topup, because they raise or re-enable recurring charges. For those the call changes nothing and returns a confirmUrl (single use, valid for 24 hours) that a person must open and confirm in the portal - nothing is charged from here. When a call contains such a change, nothing in it is applied and the other requested changes are listed as not applied, so send them in a separate call; two changes that both need confirmation are rejected with validation, send those one at a time. Fails with subscription_missing or subscription_canceled when no plan is running, and with invalid_tier for the tier the plan already has when no other tier is scheduled. A tier the plan is already switching to counts as done, so repeating the same call after a failure is safe: what already holds is skipped and only the rest is applied. The one exception is going back to the current tier, which cancels the scheduled change: a repeat then gets invalid_tier because there is nothing left to cancel, so send only the remaining fields. On a plan set to end a tier change alone fails with invalid_state (undo the cancellation first); sent together with cancelAtPeriodEnd true it is a repeat and counts as done. Same data as PATCH /v1/subscription (response schema in /openapi.json).

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

Input Schema

NameRequiredDescriptionDefault
tierNoTier to switch to from the next period: 490, 990 or 1990. A tier higher than the current one is not applied here, it returns a confirmUrl for a person.
exhaustionModeNocap: nothing is bought once the monthly credit is used up, applied now. topup: credit is bought from the saved card instead, not applied here: it returns a confirmUrl for a person.
cancelAtPeriodEndNotrue ends the plan after the paid period. false resumes a plan that is set to end, which is not applied here: it returns a confirmUrl for a person.

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?

Goes far beyond the annotations (readOnly/destructive/idempotent) by disclosing the side effect that exhaustionMode cap also disables automatic top-up, that nothing is charged from this call, that confirmUrl is single-use and valid 24 hours, and that the rest of the batch is listed as not applied. It also enumerates failure codes (subscription_missing, subscription_canceled, invalid_tier, invalid_state) and gives retry semantics, including the disclosed exception where reverting to the current tier is not idempotent. This is a much richer behavioral contract than the annotations alone provide.

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 core requirement and the applied/not-applied rule before the edge cases, and the parallel 'applied / NOT applied / fails with' structure aids scanning. It is a dense single block of ~230 words and the retry-exception clause is convoluted, but nearly every sentence carries operational information an agent needs.

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 destructive, no-output-schema mutation with 3 optional fields, nothing material is missing: preconditions, per-field apply/no-apply behavior, confirmation handoff, error codes, partial-failure reporting and retry safety are all covered. It even points to the response schema via PATCH /v1/subscription and /openapi.json.

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% and each enum already carries its own description, so the schema does most of the work. The description still adds interaction meaning the schema cannot express — that cap implicitly turns off top-up, that cancelAtPeriodEnd true combined with a tier change counts as a repeat on an ending plan, and that a tier equal to the scheduled one is skipped.

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+scope: 'Change this account's monthly plan', and immediately names the three fields that constitute the change. It is clearly distinguishable from get_subscription (read) and cancel_subscription (full termination) by the direct-vs-confirm split it describes.

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 partitions changes into 'applied directly' (lower tier, cancelAtPeriodEnd true, cap) versus 'NOT applied from here' (higher tier, cancelAtPeriodEnd false, topup) with the reason and the alternative path (open confirmUrl in portal). It further gives batching rules — send mixed changes in separate calls, split two confirmation-requiring changes into individual calls — so the agent knows exactly when and how to invoke it.

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.