Skip to main content
Glama

get_agent_budget

Read-onlyIdempotent

Retrieve an agent's current budget cycle details: spending limit (USD) and remaining balance, counting all LLM calls, including BYOK.

Instructions

Retorna o orçamento (teto de gasto em USD) e o saldo do ciclo atual de um agente. O budget conta TODAS as chamadas LLM do agente, incluindo BYOK. unlimited=true significa sem teto configurado.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesUUID do agente
Install Server

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds meaningful behavioral context: it counts ALL LLM calls including BYOK, and defines what unlimited=true means. These details go beyond annotations and clarify the semantics of the returned data.

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?

Two sentences with zero wasted words. The main return values are front-loaded, and the technical detail about BYOK and unlimited is placed after the core message. Every sentence earns its place.

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 getter with one parameter and no output schema, the description adequately states what is returned (budget and balance) and defines key terms (unlimited). It doesn't detail the exact JSON response structure, but with no output schema provided, this level of detail is acceptable. The behavioral context about BYOK rounding it out.

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 coverage is 100% (agent_id is described as 'UUID do agente'). The description adds no new parameter semantics beyond what the schema provides. Baseline 3 applies because the schema fully documents the only parameter.

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 clearly states the specific verb 'Retorna' (returns) and the resource: the budget (spending cap in USD) and balance of the current cycle for a single agent. It indicates a read operation and implies it's for one agent via 'de um agente', but does not explicitly contrast with list_agent_budgets, which likely handles multiple agents.

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 description implies usage for a single agent's budget but provides no explicit guidance on when to use this tool versus list_agent_budgets or other alternatives. It doesn't mention exclusions or scenarios. The context is clear but not directive, so a 3 is appropriate.

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

Other Tools

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/zihin-ai/zihin-mcp'

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