Skip to main content
Glama

Get Usage

get_usage
Read-only

AI credits and export minutes left for the user in this workspace, and the plan. Call it only when the user asks about credits, limits or export minutes. Returns { credits, export_minutes, speech, plan, cycle_ends_at }.

credits is { left (what the user can spend now), personal ({ allowance, used } for this cycle, when the workspace gives members an allowance), workspace_left, resets_at }. export_minutes is { used, limit, left } for this billing cycle; limit and left are null when exports are unlimited. A video counts once, at its longest export, so re-exporting it does not use more. speech is { used_seconds, limit_seconds, left_seconds, resets_at } for AI speech generation (voiceover_batch's quota, separate from credits); limit and left are null when uncapped.

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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a read-only, non-destructive, closed-world read; the description goes well beyond them by documenting the exact return shape, null semantics for uncapped limits, and the non-obvious counting rule that a video is charged once at its longest export. That rule materially affects how an agent interprets and reports usage numbers.

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?

Front-loads purpose, then the single usage constraint, then return details in a structured field-by-field manner. Length is justified by the absence of an output schema, though the backtick-dense field walkthrough is slightly heavy for a read-only lookup.

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 and no parameters, the description fully carries the burden: it enumerates every returned field, explains nesting and null cases, and clarifies cycle semantics. Nothing an agent needs to call and interpret this tool is missing.

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 no parameters, so there is nothing to disambiguate; the description instead spends its semantic budget on return fields, which is the right allocation. Baseline 4 applies for a zero-parameter tool.

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 resource (AI credits, export minutes, speech quota, plan) scoped to 'the user in this workspace'. It also disambiguates its speech block from voiceover_batch's quota, so an agent can separate this billing/usage read from the media-generation siblings.

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?

Gives an explicit trigger ('only when the user asks about credits, limits or export minutes'), which functions as both a when and a when-not. It does not name any alternative tool to use for other usage questions, but no clear alternative appears in the sibling set, so context is adequate rather than exhaustive.

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.