Skip to main content
Glama

Spending

get_usage
Read-only

Your org's credits (its balance and auto reload for an admin; your allowance and whether the org is fine, low or out for a member), what your tasks cost this month against the org's monthly limit, and the last days by category (model, residential IP, browser, CAPTCHA) and by model.

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
daysNoDefault 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds genuinely non-obvious behavior: the payload shape depends on the caller's role, and the health signal is a three-valued state (fine/low/out). It stops short of stating permissions beyond role, freshness of the numbers, or whether 'this month' is calendar-month or billing-cycle.

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?

Everything is packed into one long sentence with nested parentheses, which makes the admin/member conditional hard to parse at a glance. It is front-loaded on the primary resource (credits) and free of filler, but splitting the role-dependent clause out would cost nothing and gain clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of describing return values, and it does so in useful detail across credits, monthly cost, and category/model breakdowns. The main residual gap is the interaction between the 'days' window and the 'this month' figures, plus whether the health status is computed live or from a snapshot.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage and a single optional 'days' parameter (default 30), the schema already carries the meaning. The phrase 'the last days by category' hints that 'days' scopes the historical breakdown only and not the month-to-date figure, but it leaves that boundary ambiguous rather than explaining it.

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 description enumerates concretely what is returned: org credit balance and auto-reload (admin), personal allowance and org health status (member), month-to-date task cost against the monthly limit, and per-category/per-model daily breakdowns. That is a specific resource with real content, not a restatement of the title 'Spending'. It does not name or contrast any sibling, but none of the listed siblings ('get_settings', 'list_jobs') is close enough to require it.

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?

Usage is only implied by the content — an agent can infer 'call this to check credits/spend'. There is no explicit statement of when to use it, no exclusions, and no alternative named. The admin-vs-member split tells the agent what it will receive, not when to call it.

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.