Skip to main content
Glama

deletePlan

Destructive

Delete a membership plan so the location no longer offers it. Deleting is permanent and cannot be undone. Subscriptions that already include the plan keep their item for it at its current price, but the item no longer updates from the plan. Returns the plan as it was before the delete. Get planId from getPlans. Never invent UUIDs; only use values from prior tool responses.

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": {
      "planId": "<planId>"
    },
    "name": "deletePlan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesThe id of the plan.

Output Schema

NameRequiredDescriptionDefault
planYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / plan / properties / access / properties / doorflowGroupRef
      Added value: +{
      +  "description": "DoorFlow access group reference.",
      +  "type": "string",
      +  "x-visibility": "internal"
      +}
  2. Changed3 schema fields changed
    • removedOutput schema / properties / plan / properties / addons
      Removed value: -{
      -  "default": [],
      -  "description": "Addons included in the plan.",
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "description": "Unique identifier of the addon.",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / plan / properties / crossSells
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Plans members can buy together with this plan.",
      +  "properties": {
      +    "plans": {
      +      "description": "Plans offered with this plan, in order.",
      +      "items": {
      +        "description": "Plan id.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "plans"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / plan / required
      Previous value: -[
      -  "addons",
      -  "commitmentCycles",
      -  "createDate",
      -  "credits",
      -  "customTax",
      -  "dayPasses",
      -  "description",
      -  "exclusiveAccess",
      -  "grantedDiscounts",
      -  "id",
      -  "locale",
      -  "locationRef",
      -  "media",
      -  "period",
      -  "price",
      -  "selfSignup",
      -  "setupFee",
      -  "title"
      -]New value: +[
      +  "commitmentCycles",
      +  "createDate",
      +  "credits",
      +  "crossSells",
      +  "customTax",
      +  "dayPasses",
      +  "description",
      +  "exclusiveAccess",
      +  "grantedDiscounts",
      +  "id",
      +  "locale",
      +  "locationRef",
      +  "media",
      +  "period",
      +  "price",
      +  "selfSignup",
      +  "setupFee",
      +  "title"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties / plan / properties / selfSignup / properties / contract
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Contract the customer signs to start a subscription from an immediate sign-up. Left out when none is required.",
      +  "properties": {
      +    "templateRef": {
      +      "description": "ID of the contract template.",
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "templateRef"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the destructiveHint annotation: it declares permanence and irreversibility, spells out the downstream effect on existing subscriptions (item retained at current price but no longer updated from the plan), and states what is returned. This is exactly the context an agent needs before firing an irreversible mutation.

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?

Front-loads the destructive scope, then consequences, then return value, then ID sourcing. Every sentence carries distinct information with no repetition of schema or annotation content.

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?

With an output schema present, the description needn't restate the response shape, and it still summarizes the return ('the plan as it was'). For a single-parameter destructive tool, nothing an agent needs to call it 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 format/pattern is already documented, but the description adds real value by specifying where planId must come from (getPlans or prior tool responses) rather than being fabricated.

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 (Delete) and resource (membership plan) and adds the resulting scope ('so the location no longer offers it'), which separates it cleanly from the many other delete* siblings that target different resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for legitimate use (permanent removal), including how to source the ID from getPlans and the instruction to never invent UUIDs. It stops short of naming an alternative such as deactivating via updatePlan for callers who want to stop offering the plan without losing the subscription linkage.

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