Skip to main content
Glama

Delete site membership data

subscriptions_delete
Destructive

Deletes membership plans and legacy membership plans of the site, and ends the access periods of site members. Cannot be undone.

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": {
      "action": "<action>",
      "site_id": "<site_id>"
    },
    "name": "subscriptions_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoLegacy membership plan id.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
confirmNoConfirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do.
plan_idNoMembership plan id.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.
subscription_idNoId of an access period (subscription) of a site member.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "site_id"
      +]
  2. Changed4 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plan_delete",
      -    "description": "Deletes a tariff plan. Required: plan_id. Optional: confirm."
      -  },
      -  {
      -    "const": "legacy_item_delete",
      -    "description": "Deletes a legacy tariff (id in id or plan_id). Required: id or plan_id. Optional: confirm."
      -  },
      -  {
      -    "const": "subscription_cancel",
      -    "description": "Cancels a subscription at once: access ends and automatic charges stop. No money is refunded. Required: subscription_id. Optional: confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "plan_delete",
      +    "description": "Deletes a membership plan. Required: plan_id. Optional: confirm."
      +  },
      +  {
      +    "const": "legacy_item_delete",
      +    "description": "Deletes a legacy membership plan (id in id or plan_id). Required: id or plan_id. Optional: confirm."
      +  },
      +  {
      +    "const": "subscription_cancel",
      +    "description": "Ends the access period of a site member at once: access ends and auto-renewal stops. No money is refunded. Required: subscription_id. Optional: confirm."
      +  }
      +]
    • changedInput schema / properties / id / description
      Previous value: -"Legacy tariff id."New value: +"Legacy membership plan id."
    • changedInput schema / properties / plan_id / description
      Previous value: -"Tariff plan id."New value: +"Membership plan id."
    • changedInput schema / properties / subscription_id / description
      Previous value: -"Subscription id."New value: +"Id of an access period (subscription) of a site member."
  3. Changed3 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plan_delete",
      -    "description": "Deletes a tariff plan. Required: plan_id, confirm."
      -  },
      -  {
      -    "const": "legacy_item_delete",
      -    "description": "Deletes a legacy tariff (id in id or plan_id). Required: id or plan_id, confirm."
      -  },
      -  {
      -    "const": "subscription_cancel",
      -    "description": "Cancels a subscription at once: access ends and automatic charges stop. No money is refunded. Required: subscription_id, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "plan_delete",
      +    "description": "Deletes a tariff plan. Required: plan_id. Optional: confirm."
      +  },
      +  {
      +    "const": "legacy_item_delete",
      +    "description": "Deletes a legacy tariff (id in id or plan_id). Required: id or plan_id. Optional: confirm."
      +  },
      +  {
      +    "const": "subscription_cancel",
      +    "description": "Cancels a subscription at once: access ends and automatic charges stop. No money is refunded. Required: subscription_id. Optional: confirm."
      +  }
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass true only after the user approves this change. Required by: plan_delete, legacy_item_delete, subscription_cancel."New value: +"Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do."
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "confirm"
      -]New value: +[
      +  "action"
      +]
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "confirm"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plan_delete",
      -    "description": "Deletes a tariff plan. Required: plan_id, confirm."
      -  },
      -  {
      -    "const": "legacy_item_delete",
      -    "description": "Deletes a legacy tariff (id in id or plan_id). Required: confirm. Optional: id, plan_id."
      -  },
      -  {
      -    "const": "subscription_cancel",
      -    "description": "Cancels a subscription at once: access ends and automatic charges stop. No money is refunded. Required: subscription_id, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "plan_delete",
      +    "description": "Deletes a tariff plan. Required: plan_id, confirm."
      +  },
      +  {
      +    "const": "legacy_item_delete",
      +    "description": "Deletes a legacy tariff (id in id or plan_id). Required: id or plan_id, confirm."
      +  },
      +  {
      +    "const": "subscription_cancel",
      +    "description": "Cancels a subscription at once: access ends and automatic charges stop. No money is refunded. Required: subscription_id, confirm."
      +  }
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plan_delete",
      -    "description": "Deletes a tariff plan. Required: plan_id, confirm."
      -  },
      -  {
      -    "const": "legacy_item_delete",
      -    "description": "Deletes a legacy tariff (id in id or plan_id). Required: confirm. Optional: id, plan_id."
      -  },
      -  {
      -    "const": "subscription_cancel",
      -    "description": "Cancels a subscription. Required: subscription_id, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "plan_delete",
      +    "description": "Deletes a tariff plan. Required: plan_id, confirm."
      +  },
      +  {
      +    "const": "legacy_item_delete",
      +    "description": "Deletes a legacy tariff (id in id or plan_id). Required: confirm. Optional: id, plan_id."
      +  },
      +  {
      +    "const": "subscription_cancel",
      +    "description": "Cancels a subscription at once: access ends and automatic charges stop. No money is refunded. Required: subscription_id, confirm."
      +  }
      +]
  7. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's added value is the explicit irreversibility statement and the note that member access periods are ended (a side effect beyond simply removing a record). It does not cover the confirm-refusal flow or what happens to member data, but the core destructive behavior is disclosed beyond the annotations.

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?

Two short sentences: the first enumerates the affected resources, the second front-loads the irreversibility warning. Nothing is wasted and the critical constraint is not buried.

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 destructive, multi-mode tool with six parameters, the description plus annotations plus a well-annotated schema cover cause, effect, and reversibility, and no output schema is needed for a delete. The remaining gap is routing guidance relative to the sibling subscriptions_write 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% and the oneOf entries already document each action's required parameters, so the description adds no parameter-level meaning. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (deletes) plus the three resource types it acts on (membership plans, legacy membership plans, member access periods), which maps cleanly onto the plan_delete / legacy_item_delete / subscription_cancel actions. It does not differentiate itself from siblings such as subscriptions_write or subscriptions_read, so an agent must infer the boundary.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no mention of the obvious alternative (subscriptions_write) or of any prerequisite such as reading the subscription first. The only implicit steer is 'Cannot be undone', which warns but does not route.

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.