Skip to main content
Glama

Get the account budget

get_account_budget
Read-onlyIdempotent

Get the account budget

The account's budget: every key's spend together, its customers' keys included (their calls debit the account's balance), with each limit's spend this window. 404 not_found when the account has none. Windows are UTC: the day from midnight, the week from Monday, the month from the 1st, lifetime from when that limit was set.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety bar is low. The description still adds real value beyond them: the 404 not_found case when no budget exists, the fact that customer-key calls debit the account balance, and the exact UTC window boundaries for each limit period.

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 purpose is front-loaded in the first line, followed by scope, error behavior and window semantics. Dense but each clause carries information; the only mild redundancy is restating the title verbatim as the opening sentence.

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?

For a zero-parameter read with no output schema, the definition covers what the response contains (each limit's spend this window), the aggregation scope, the not-found error, and window boundary semantics. Enough for an agent to call it and interpret the result, though the concrete response fields remain unstated.

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 and the schema coverage is 100%, so there is nothing for the description to disambiguate. The baseline for a zero-parameter tool applies.

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?

States a specific verb+resource (get the account budget) and then defines its scope precisely: the aggregate of every key's spend including customer keys, since 'their calls debit the account's balance'. That scope phrasing implicitly separates it from get_key_budget, though no sibling is named outright, keeping it just short of a 5.

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?

The definition gives context that makes the tool's role inferable (account-level aggregate vs. per-key), but never states when to prefer it over get_key_budget, get_balance, or get_usage, nor any prerequisites. Usage is implied rather than guided.

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