Skip to main content
Glama

Delete Plan

delete_plan
Destructive

Delete a subscription plan that NO workspace is on; its Stripe product and prices are archived. A plan workspaces are on is REFUSED with PLAN_IN_USE and nothing changes: tell the user how many workspaces are on it and offer the choices — archive_plan (they keep it, nobody new can choose it), or move them with set_tenant_plan, or delete them with delete_tenant, and then delete the plan. REQUIRES CONFIRMATION: call again with confirm set to the exact plan key, only after the user has explicitly agreed — never supply it on your own initiative. dryRun: true previews it first (delete or refuse, and which workspaces are on the plan) without changing anything or needing confirm. Fails with PLAN_NOT_FOUND when no plan has that key. Before writing app code that consumes this, call get_integration_guide with topic=billing and the framework the app uses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoId of the Bridge app to act on for this call (see list_apps). Omit to use the current app.
keyYesPlan KEY (see list_plans).
dryRunNotrue previews what the deletion would affect and deletes nothing — no confirm needed. Do this first and show the user the result. Needs the same privilege as the deletion itself.
confirmNoRepeat the exact key of the resource being deleted, as confirmation. Required to delete; not needed with dryRun. This is a deliberate safety step — do NOT guess it or copy it from a fuzzy match. If you are not certain, list the resources first and ask the user which one they mean.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=false): it names what is archived (Stripe product and prices), the exact refusal error and that nothing mutates in that case, the required confirmation flow with the 'never supply it on your own initiative' guardrail, the dryRun preview semantics, and the PLAN_NOT_FOUND failure mode.

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 action, refusal behavior, and the confirmation gate; every clause carries operational weight. It is long and uses shouted emphasis (NO, REFUSED, REQUIRES CONFIRMATION), but no sentence is filler, so the length is justified for a destructive operation.

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 4-parameter destructive tool with no output schema, the description covers the mutation's side effects, the refusal branch, the two-step confirmation workflow, error codes, and a pointer to get_integration_guide for downstream app code. Nothing an agent needs to invoke this safely 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 one more by supplying the call-ordering semantics (dryRun first, then re-call with confirm set to the exact key) that the schema fields describe only individually. Much of the confirm/dryRun text overlaps the schema descriptions, so it is additive rather than fully novel.

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+resource (delete a subscription plan) and immediately scopes it: only plans NO workspace is on, with the side effect (Stripe product/prices archived). It distinguishes itself from the nearest siblings by naming archive_plan, set_tenant_plan, and delete_tenant as the alternatives in the refusal path.

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 when-to-use and when-not-to-use: a plan in use is REFUSED with PLAN_IN_USE and nothing changes, and the agent is told exactly which sibling to pick for each user choice (archive_plan, set_tenant_plan, delete_tenant). It also states the required sequence (dryRun first, then confirm) and the prerequisite guide lookup.

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.