Skip to main content
Glama

Get plan usage

get_usage
Read-onlyIdempotent

What the account has consumed this period and what its plan allows — read from the meter an invoice is computed from.

Figures cover the whole ACCOUNT, not just this workspace: a plan is bought once and every workspace its owner owns draws from one pool. This is what will refuse the next write even when this workspace has barely been used.

When posts.included is a number, that many published actions a period are covered and each one past it is billed per action, never refused. Mention the extra cost before scheduling a bulk run that would go past it. When it is null, nothing is billed per action. A hard cap (posts.created.limit) applies only during a trial or after a failed payment, and counts posts published plus posts still waiting to publish. periodEnd is when the period resets.

Requires a key with the read scope, unlike the other reads here: consumption is commercial information about the workspace rather than the user’s own content.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the bar is lower, yet the description still adds substantial context: account-wide pooling across workspaces, the `read` scope requirement that differs from other reads, and why that scope is needed. It also discloses the behavioral distinction between per-action billing (never refused) and a hard cap that applies only during trial or after failed payment.

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?

The scope statement is front-loaded ahead of the billing details, and each paragraph covers one concern: scope, billing model, hard cap, auth. It runs four paragraphs, and a few clauses such as 'even when this workspace has barely been used' restate the pooling point, so it is slightly longer than strictly necessary.

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?

There is no output schema, so the description must carry return-value meaning, and it does by explaining the three fields an agent must reason about and what a null versus numeric `posts.included` implies. Auth requirements, scope, and the conditions under which a hard cap applies are all present, leaving no obvious gap for a zero-parameter read.

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?

With zero parameters there is nothing for the description to disambiguate, so the baseline is 4. The description instead spends its words on output field semantics (`posts.included`, `posts.created.limit`, `periodEnd`), which is useful but belongs more to return-value documentation than to parameter meaning.

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 first sentence gives a specific verb and resource: reports what the account has consumed and what its plan allows, read from the same meter invoices are computed from. It immediately distinguishes scope from workspace-level siblings (get_stats, get_posting_insights) by stating figures cover the whole ACCOUNT, not just this workspace.

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?

It gives concrete when-to-use guidance: check before scheduling a bulk run that would exceed `posts.included`, and mention the extra cost. It also frames the tool as the thing that will refuse the next write, which tells an agent when to consult it. There is no explicit when-not-to-use or named alternative, which keeps it short of a 5.

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