Skip to main content
Glama

Get plan + billing dates

get_plan
Read-onlyIdempotent

Return the user's plan + billing-date info: tier, renewal date, trial end date, and cancel-at-period-end state. Call when the user asks "when does my plan renew?", "how many days left on my trial?", or "is my subscription cancelling?". For quotas and usage (channels, AI credits, posts), call get_plan_limits instead — this tool is purely about plan identity and billing dates.

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": "get_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
tierYes
gatedYes
isPaidYes
isTrialYes
currencyNo
renewsAtNo
trialEndsAtNo
tierDisplayNameYes
cancelAtPeriodEndYes
subscriptionStatusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / upgradeUrl
      Removed value: -{
      -  "format": "uri",
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "tier",
      -  "tierDisplayName",
      -  "isPaid",
      -  "isTrial",
      -  "gated",
      -  "cancelAtPeriodEnd",
      -  "upgradeUrl"
      -]New value: +[
      +  "tier",
      +  "tierDisplayName",
      +  "isPaid",
      +  "isTrial",
      +  "gated",
      +  "cancelAtPeriodEnd"
      +]
  2. Changed1 schema field changed
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds the scope boundary that matters behaviorally — 'purely about plan identity and billing dates' — preventing an agent from expecting usage counters. It does not add anything on freshness/caching of billing dates, which keeps it short of a 5.

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 sentences, front-loaded with the resource and its fields, then usage triggers, then the exclusion. The quoted example questions are the one potentially expendable element, but they directly aid routing and cost little.

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?

Zero parameters, an output schema that carries the return shape, and annotations covering the safety profile — the description supplies exactly the missing pieces (scope and sibling routing) and nothing more is needed to call 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?

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate. The field list it does give is return-value content rather than parameter semantics, so no additional credit applies.

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 (return) and resource (user's plan + billing-date info) and enumerates the exact fields returned: tier, renewal date, trial end date, cancel-at-period-end state. It also explicitly delimits itself against the sibling get_plan_limits, so an agent can distinguish the two 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?

Gives concrete trigger utterances ("when does my plan renew?", "how many days left on my trial?", "is my subscription cancelling?") and an explicit negative routing rule: for quotas and usage, call get_plan_limits instead. Both the when and the when-not are stated outright.

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