Skip to main content
Glama

get_remaining_budget

Retrieve the remaining token budget for a specified agent, including total allocated, consumed, and protected minimum.

Instructions

Return a single agent's current remaining token budget, along with its allocated total, consumed total, priority, and protected minimum reserve. Use this to check whether an agent is close to starved before deciding whether to request a reallocation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesThe registered agent to look up.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. The verbs 'Return' and 'check' clearly imply a read-only operation, and the description discloses the returned fields and the concept of 'close to starved.' However, it does not explicitly state that it has no side effects, require no special permissions, or describe error behavior—though these are partially implied by the tool name and usage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no filler. The first sentence front-loads the function and output fields; the second provides a directly actionable use case. Every sentence earns its place.

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?

The tool has one parameter, no output schema, and no annotations. The description compensates by listing all returned fields (remaining budget, allocated, consumed, priority, protected minimum reserve) and the context for use. An agent has enough information to call the tool and interpret the result.

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?

Schema description coverage is 100% because agent_id is described as 'The registered agent to look up.' The description adds only the notion of 'single agent,' which reinforces the semantics already present in the schema but does not add meaningful new meaning beyond it. Baseline 3 is appropriate.

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 description states a specific verb and resource: 'Return a single agent's current remaining token budget' along with the exact fields returned. It distinguishes from siblings by emphasizing 'single agent' (vs. get_budget_snapshot) and by connecting to the reallocation workflow (vs. request_reallocation).

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?

The description gives a clear use case: 'Use this to check whether an agent is close to starved before deciding whether to request a reallocation.' It implies when this tool is appropriate relative to request_reallocation, but it does not explicitly mention when not to use it or name the alternative get_budget_snapshot.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/swaranshu-borgaonkar/tbc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server