Skip to main content
Glama

Get plan usage

get_plan_usage
Read-onlyIdempotent

Check your organization's plan limits and current usage before creating monitors, heartbeats, or regions, or to explain a 403 limit error.

Instructions

Show the organization's plan, its limits and current usage, to check that new monitors, heartbeats or regions fit before creating them or to explain a 403 naming a limit. Region codes and their cities come from list_regions; billing changes happen only in the dashboard. Values are current as of the call. Returns plan (one of FREE, PLUS, PRO, MAX, ENTERPRISE), limits and usage. limits: max_monitors, min_interval_seconds, max_fast_monitors (monitors below fast_interval_threshold_seconds, 60), max_regions per monitor, allowed_regions, max_heartbeats, max_maintenance_windows, max_status_pages, max_status_page_subscribers, max_channels, max_api_keys, history_retention_days, api_rate_limit_per_minute (shared by the whole organization), min_reminder_interval_seconds (the shortest reminder interval the plan allows; open, unacknowledged incidents are recalled in one digest per channel); renotify_interval_seconds and renotify_max_count are deprecated and carry no separate meaning; null means no limit. usage: monitors (paused included), fast_monitors, heartbeats, channels (member email channels excluded), api_keys (keys that still authenticate) and status_page_subscribers (confirmed, organization-wide), each next to its limit above.

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_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
planYesKnown values: FREE, PLUS, PRO, MAX, ENTERPRISE.
usageYes
limitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.9.4
    • addedOutput schema / properties / limits / properties / min_reminder_interval_seconds
      Added value: +{
      +  "type": "integer"
      +}
    • removedOutput schema / properties / limits / properties / renotify_interval_seconds
      Removed value: -{
      -  "type": "integer"
      -}
    • removedOutput schema / properties / limits / properties / renotify_max_count
      Removed value: -{
      -  "type": "integer"
      -}
    • changedOutput schema / properties / limits / required
      Previous value: -[
      -  "tier",
      -  "max_monitors",
      -  "min_interval_seconds",
      -  "max_fast_monitors",
      -  "fast_interval_threshold_seconds",
      -  "max_regions",
      -  "history_retention_days",
      -  "allowed_channel_types",
      -  "max_channels",
      -  "max_heartbeats",
      -  "max_maintenance_windows",
      -  "max_status_pages",
      -  "max_status_page_subscribers",
      -  "renotify_interval_seconds",
      -  "renotify_max_count",
      -  "max_api_keys",
      -  "api_rate_limit_per_minute",
      -  "allowed_regions"
      -]New value: +[
      +  "tier",
      +  "max_monitors",
      +  "min_interval_seconds",
      +  "max_fast_monitors",
      +  "fast_interval_threshold_seconds",
      +  "max_regions",
      +  "history_retention_days",
      +  "allowed_channel_types",
      +  "max_channels",
      +  "max_heartbeats",
      +  "max_maintenance_windows",
      +  "max_status_pages",
      +  "max_status_page_subscribers",
      +  "min_reminder_interval_seconds",
      +  "max_api_keys",
      +  "api_rate_limit_per_minute",
      +  "allowed_regions"
      +]
  2. Changed4 schema fields changedv1.9.1
    • addedOutput schema / properties / usage / properties / api_keys
      Added value: +{
      +  "description": "API keys that still authenticate (not revoked, deleted or expired); count toward max_api_keys.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / usage / properties / channels
      Added value: +{
      +  "description": "Notification channels counted toward max_channels (member email channels never count).",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / usage / properties / status_page_subscribers
      Added value: +{
      +  "description": "Confirmed status page subscribers across the whole organization (the cap is per organization).",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / usage / required
      Previous value: -[
      -  "monitors",
      -  "fast_monitors",
      -  "heartbeats"
      -]New value: +[
      +  "monitors",
      +  "fast_monitors",
      +  "heartbeats",
      +  "channels",
      +  "api_keys",
      +  "status_page_subscribers"
      +]
  3. Changed1 schema field changedv0.6.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "limits": {
      +      "properties": {
      +        "allowed_channel_types": {
      +          "items": {
      +            "description": "Known values: EMAIL, TELEGRAM, WEBHOOK, SLACK, DISCORD.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "allowed_regions": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "api_rate_limit_per_minute": {
      +          "type": "integer"
      +        },
      +        "fast_interval_threshold_seconds": {
      +          "type": "integer"
      +        },
      +        "history_retention_days": {
      +          "type": "integer"
      +        },
      +        "max_api_keys": {
      +          "type": "integer"
      +        },
      +        "max_channels": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_fast_monitors": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_heartbeats": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_maintenance_windows": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_monitors": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_regions": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_status_page_subscribers": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "max_status_pages": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "min_interval_seconds": {
      +          "type": "integer"
      +        },
      +        "renotify_interval_seconds": {
      +          "type": "integer"
      +        },
      +        "renotify_max_count": {
      +          "type": "integer"
      +        },
      +        "tier": {
      +          "description": "Known values: FREE, PLUS, PRO, MAX, ENTERPRISE.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "tier",
      +        "max_monitors",
      +        "min_interval_seconds",
      +        "max_fast_monitors",
      +        "fast_interval_threshold_seconds",
      +        "max_regions",
      +        "history_retention_days",
      +        "allowed_channel_types",
      +        "max_channels",
      +        "max_heartbeats",
      +        "max_maintenance_windows",
      +        "max_status_pages",
      +        "max_status_page_subscribers",
      +        "renotify_interval_seconds",
      +        "renotify_max_count",
      +        "max_api_keys",
      +        "api_rate_limit_per_minute",
      +        "allowed_regions"
      +      ],
      +      "type": "object"
      +    },
      +    "plan": {
      +      "description": "Known values: FREE, PLUS, PRO, MAX, ENTERPRISE.",
      +      "type": "string"
      +    },
      +    "usage": {
      +      "properties": {
      +        "fast_monitors": {
      +          "description": "Monitors with an interval below the fast threshold.",
      +          "type": "integer"
      +        },
      +        "heartbeats": {
      +          "type": "integer"
      +        },
      +        "monitors": {
      +          "description": "Monitors, paused ones included.",
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "monitors",
      +        "fast_monitors",
      +        "heartbeats"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "plan",
      +    "limits",
      +    "usage"
      +  ],
      +  "type": "object"
      +}
  4. First observedv0.5.4

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, and the description still adds non-obvious traits: values are current as of the call (no caching), api_rate_limit_per_minute is shared org-wide, and null means 'no limit' rather than zero. It also discloses the authorization boundary that billing mutations are impossible here, which is exactly the kind of context annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and usage conditions are correctly front-loaded in the first two sentences, but the remaining text is a single run-on enumeration of roughly twenty limit keys and five usage counters. Since an output schema already exists, much of that field-by-field listing is redundant; the genuinely valuable bits (paused included, member email channels excluded, keys that still authenticate, deprecated fields) are buried inside it.

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 zero-parameter, read-only tool this covers everything an agent needs: when to call it, what it returns at a high level, and the counting semantics for each usage figure (paused monitors counted, unconfirmed subscribers excluded). The presence of an output schema means return shape need not be restated, and the description still supplies the interpretation rules that schema alone would not.

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 and the schema is an empty object, so there is nothing for the description to disambiguate; baseline of 4 applies. The description instead spends its budget on return-value semantics, which is harmless but not parameter guidance.

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 ('Show the organization's plan, its limits and current usage') and immediately scopes it against siblings by declaring that region codes come from list_regions and billing changes live in the dashboard. An agent can distinguish this read-only plan-introspection tool from monitor/incident tools without opening the 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 two explicit triggering conditions: pre-flight checks before creating monitors, heartbeats or regions, and post-hoc explanation of a 403 that names a limit. It also names what it does NOT do (billing, region lookup) and routes those to the dashboard and list_regions respectively, so no inference is required.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.