Skip to main content
Glama

getPlan

Read-only

Get one plan by planId. 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": "getPlan"
  }
}

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.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds a source-integrity constraint ('only use values from prior tool responses') but does not explain not-found, permission, or error behavior, which is acceptable given the annotation coverage.

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 are front-loaded with the action, then the prerequisite, then the constraint. Every sentence adds necessary operational guidance with no wasted wording.

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?

For a simple read-by-id tool with an output schema and safety annotations, the description supplies the only missing operational details: where the ID comes from and that it must not be fabricated. Nothing else is needed to invoke it correctly.

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% and the planId parameter is already documented as a UUID. The description adds meaningful sourcing semantics beyond the schema by stating where to get planId and prohibiting invented UUIDs, reducing hallucinated identifiers.

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?

The description states a specific verb and resource: 'Get one plan by planId.' It distinguishes this singular retrieval from the sibling getPlans, so an agent can identify the correct tool without opening either schema.

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

Usage Guidelines5/5

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

It explicitly directs the agent to obtain planId from getPlans and forbids inventing UUIDs, routing the agent to the correct prerequisite. This gives clear guidance for the key dependency and prevents the most likely misuse.

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