Skip to main content
Glama

get_ai_usage

Read-onlyIdempotent

How much of this month's AI allowance the workspace used. The allowance is one amount covering posts on X, X post reads and stats, spin-off video clips, Shorts video and any writing on a paid outside provider, and is a share of what the plan costs per month. Returns the dollars used and included, the split by kind (byCategory: articles, spinoffs, xPosts, xReads, xSync, video, shorts), the part articles may use (articlesCapUsd, inside the total), the reset date, and which own-key slots are filled (never a key). When reached is true, articles, spin-offs, X stats and video answer 429 or pause until the 1st unless the workspace saved its own provider key (one key slot for writing, one for video). Posts already scheduled on X still go out. Keys can only be added by a workspace owner or admin in the browser, at the settingsUrl in the answer: never ask the user to paste a key into the chat. CAPABILITY: read: side-effect-free.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses quota semantics (allowance covers X posts, X reads/stats, spin-offs, Shorts and paid outside-provider writing, and is a monthly share of plan cost), the consequence of exhaustion (429 or pause until the 1st, except with a saved own key), an important exception (already-scheduled X posts still go out), and a security constraint (own-key slots are only reported as filled, never the key itself). This is exactly the kind of context annotations cannot carry.

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?

It is front-loaded with the core answer and then layers on scope, return contents, and failure behavior in a logical order, with no filler sentences. Minor waste comes from the trailing 'CAPABILITY: read: side-effect-free', which restates readOnlyHint, and from a dense run-on mid-section.

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?

With no output schema present, the description carries the full burden of explaining the return shape, and it does so comprehensively: dollar amounts, per-category breakdown, the articles sub-cap nested in the total, reset date, and which key slots are filled. It also covers the degraded-state behavior an agent needs in order to respond 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 parameter semantics are trivially satisfied and the baseline is 4. The description goes further by mapping the response fields it will return, though that is output rather than input meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific resource and measure ('How much of this month's AI allowance the workspace used'), and the second enumerates exactly what the answer contains (dollars used/included, byCategory split, articlesCapUsd, reset date, key slots). It is unambiguous what the tool reports, but it never distinguishes itself from adjacent read tools such as get_capabilities or get_engagement_summary.

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

Usage Guidelines3/5

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

There is no explicit 'use this when' or exclusion statement, so an agent must infer that it is the pre-flight check before spending AI allowance. It does give actionable follow-up guidance for a specific case: when `reached` is true, keys can only be added by an owner/admin at `settingsUrl` and the agent must never ask the user to paste a key in chat.

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.