Skip to main content
Glama

getPlans

Read-only

List plans. Omit locationRef to list plans across all locations, or provide it to scope to one location. Call getLocations to list locations, or getLocation to fetch one by locationId.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "getPlans"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of plans per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
locationRefNoUUID of the location whose plans to list. Omit to list plans across every location of the network.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.

Output Schema

NameRequiredDescriptionDefault
plansYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / plans / items / properties / access / properties / doorflowGroupRef
      Added value: +{
      +  "description": "DoorFlow access group reference.",
      +  "type": "string",
      +  "x-visibility": "internal"
      +}
  2. Changed3 schema fields changed
    • removedOutput schema / properties / plans / items / 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 / plans / items / 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 / plans / items / 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 / plans / items / 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/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds the cross-location scope behavior but says nothing about result ordering, pagination expectations beyond the schema's nextPageToken, or scale of results across a whole network — useful context for a list tool over an unbounded scope, but not provided.

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, then scope semantics, then the helper-tool routing. Nothing is wasted, and the most decision-relevant fact (scope behavior) precedes the peripheral pointers.

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 simple read-only list tool with annotations and an output schema, the description covers purpose, scoping, and how to obtain the location identifier. Only the pagination/result-size expectation across all locations is left implicit, which the nextPageToken schema partially compensates for.

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%, so limit, locationRef, and nextPageToken are fully documented in structured data; the description's locationRef sentence largely restates the schema wording. Baseline 3 applies since no additional semantics (e.g., how page tokens interact with a changed locationRef) are contributed.

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 and resource ('List plans') and immediately defines the scope switch via locationRef (all locations vs one location). An agent can distinguish this from single-entity siblings like getLocation without opening a schema.

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 explicit conditional guidance for the key parameter ('Omit locationRef ... or provide it to scope to one location') and routes the agent to getLocations/getLocation when the location identifier is unknown. It stops short of stating when this tool should not be used, but the conditional scoping guidance is genuinely actionable.

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