Skip to main content
Glama

updatePlan

Destructive

Change fields of a membership plan; omitted fields keep their current values. Returns the updated plan. 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>",
      "plan": "<plan>"
    },
    "name": "updatePlan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesPlan fields to change. Omitted fields keep their current values.
planIdYesThe id of the plan.

Output Schema

NameRequiredDescriptionDefault
planYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / plan / properties / access / properties / doorflowGroupRef
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "DoorFlow access group reference.",
      +  "x-visibility": "internal"
      +}
    • addedOutput schema / properties / plan / properties / access / properties / doorflowGroupRef
      Added value: +{
      +  "description": "DoorFlow access group reference.",
      +  "type": "string",
      +  "x-visibility": "internal"
      +}
  2. Changed5 schema fields changed
    • removedInput schema / properties / plan / properties / addons
      Removed value: -{
      -  "description": "Addons included in the plan.",
      -  "items": {
      -    "properties": {
      -      "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"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / plan / properties / crossSells
      Added value: +{
      +  "description": "Plans members can buy together with this plan. Kept as stored when omitted.",
      +  "properties": {
      +    "plans": {
      +      "description": "Plans of the same location and cycle, in the order they are offered.",
      +      "items": {
      +        "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"
      +}
    • 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. Changed2 schema fields changed
    • addedInput schema / properties / plan / properties / selfSignup / properties / contract
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Contract the customer signs to start a subscription from an immediate sign-up. Leave it out when none is required.",
      +  "properties": {
      +    "templateRef": {
      +      "description": "ID of a contract template of the plan's location.",
      +      "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"
      +}
    • 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

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and closed-world scope, so the safety profile is carried structurally. The description usefully adds the partial-update contract (omitted fields keep current values) and that the updated plan is returned, but it does not warn which changes are irreversible or that collection fields such as media and crossSells are replaced wholesale rather than appended — meaningful for a destructive-flagged 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?

Three short sentences, front-loaded with purpose and partial-update semantics, then return value, then ID provenance and the anti-hallucination rule. Every sentence earns its place with no restated metadata.

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?

An output schema exists, so the single clause about returning the updated plan suffices. For a deep nested-object mutation the description covers the two things an agent most needs — ID provenance and omit-to-preserve semantics — though it omits how nested collection fields behave on update.

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 description coverage is 100%, including per-field descriptions inside the nested plan object, so the baseline is 3. The description adds real value only for planId sourcing and the omit-to-preserve rule; it says nothing extra about the many nested fields (access, printing, discounts deprecation, coupons) beyond what the schema already documents.

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 and resource ("Change fields of a membership plan") plus the partial-update contract and return value, which distinguishes it from createPlan/deletePlan/getPlans without naming them. It stops short of explicit sibling differentiation, but the mutation semantics make the operation unmistakable.

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 a concrete prerequisite chain: get planId from getPlans, and a hard rule never to invent UUIDs, only use values from prior tool responses. It lacks an explicit when-not guidance (e.g., use createPlan for new plans, deletePlan to remove), which keeps it from a 5.

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