Skip to main content
Glama

get_agent_budget

Read an agent's budget caps + read-only kill-switch state (paused / paused_reason / paused_at) + live counter usage. Owner/admin only; the target must be a kind='agent' member of org_id. Pass board_id for the PER-BOARD override budget; omit it for the org-wide budget. GATED to the Scale/Agency tier (403 governance_not_entitled otherwise). Mirrors GET /v1/orgs/{org_id}/agents/{agent_user_id}/budget[?board_id=].

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "org_id": "<org_id>",
      "agent_user_id": "<agent_user_id>"
    },
    "name": "get_agent_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
org_idYes
board_idNo
agent_user_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it states this is a read operation, discloses owner/admin permissions, target-kind constraints, tier gating, and the specific error code for entitlement failures. It could go further on error behavior for missing agents or invalid board_id, but it is substantially transparent.

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 front-loaded with the core action, followed by permissions, board_id semantics, tier gating, and endpoint equivalence. It is dense but every clause adds operational meaning, and there is no filler.

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?

Given an output schema exists, the description need not explain return values, and it covers the remaining complexity: permissions, target type, board-level override behavior, org-wide default, and entitlement gating. An agent has enough information to call this correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must explain parameter meaning, and it does: board_id selects the per-board override budget when present and the org-wide budget when omitted; org_id and agent_user_id are constrained by the requirement that the target be a kind='agent' member of the org. All three parameters receive semantic context beyond UUID formats.

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 uses a specific read verb and names the exact resource: an agent's budget caps, kill-switch state, and live counter usage. It also clarifies the org-wide versus per-board variant, so an agent can distinguish this read operation from mutation-oriented siblings like set_agent_budget and pause_agent.

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?

It gives clear prerequisite conditions: owner/admin only, target must be a kind='agent' member of org_id, and Scale/Agency tier gating with a specific 403 error. It explains board_id usage for per-board versus org-wide budgets, but does not explicitly name when to prefer this over sibling tools such as set_agent_budget or pause_agent.

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