Skip to main content
Glama

createPlan

Create a membership plan in a location. Returns the created plan. Call getLocations to list locations, or getLocation to fetch one by locationId. 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": {
      "plan": "<plan>"
    },
    "name": "createPlan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesPlan to create.

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: +{
      +  "description": "DoorFlow access group reference.",
      +  "type": "string",
      +  "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: -{
      -  "default": [],
      -  "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.",
      +  "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.6/5.0
Behavior3/5

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

Annotations already declare this a non-read-only, non-destructive, closed-world write, so the baseline safety profile is covered. The description adds two useful behaviors beyond that — it returns the created plan and all UUIDs must come from prior tool responses — but says nothing about side effects such as whether members are billed immediately, whether the plan becomes purchasable at once, or what errors occur on conflicting plans.

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?

Three short sentences with the purpose and return value front-loaded and no filler. "Returns the created plan" partially duplicates the existing output schema, but it is a single clause and not costly.

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 deeply nested creation payload with an output schema, the description covers the two things the schema cannot: where location IDs come from and the no-invented-UUID rule. It leaves unstated the cross-field constraints (such as cross-sell plans needing the same location and cycle) that live in the schema, but for a tool this well documented structurally it is largely complete.

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?

There is a single top-level parameter whose nested schema has 100% description coverage, so the schema already explains fields like locationRef, period, price, access, and crossSells. The description adds no field-level meaning beyond the general UUID-sourcing rule, which merits the baseline 3 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?

"Create a membership plan in a location" gives a specific verb plus resource and scopes it to a location, which separates it from createCoupon, createBenefit, and createPackage in the sibling list. It stops short of naming updatePlan/deletePlan as the mutation alternatives, so sibling differentiation is implied by the verb rather than stated.

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?

The description tells the agent exactly how to obtain the required location ID (getLocations to list, getLocation to fetch one) and adds a hard rule against fabricating UUIDs. It gives no explicit when-not guidance or prerequisites such as permissions or plan-uniqueness rules.

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