Skip to main content
Glama

set_agent_budget

Set an agent's caps (PUT-replace; pass null / omit a field to CLEAR that cap). writes_per_day = rolling-24h write cap; requests_per_sec = per-agent req/s cap. Each must be null or a non-negative int. auto_pause (default false): when true, tripping this row's writes/day cap auto-pauses the agent org-wide (it trips its own kill switch). Owner/admin only; the target must be a kind='agent' member of org_id. Pass board_id to set a PER-BOARD override (writes/day only; per-board req/s is deferred); omit it for the org-wide budget. GATED to the Scale/Agency tier; an un-entitled org gets 403 governance_not_entitled. Mirrors PUT /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": "set_agent_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
org_idYes
board_idNo
auto_pauseNo
agent_user_idYes
writes_per_dayNo
requests_per_secNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so thoroughly: PUT-replace semantics, clearing via null/omit, auto_pause tripping an org-wide kill switch, owner/admin authorization, the kind='agent' target constraint, tier gating with the exact 403 error code governance_not_entitled, and the deferred per-board req/s limitation.

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?

Dense but front-loaded, with the PUT-replace rule first and constraints following in a logical order. Every clause is informative, though the parenthetical '(it trips its own kill switch)' is mildly redundant with the auto-pause statement.

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?

For a gated mutation tool with six parameters, zero schema coverage, and no annotations, the description covers permissions, tier gating, scope selection, parameter semantics, and error behavior. An output schema exists, so return values need not be described.

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 compensate and does: it defines writes_per_day as a rolling-24h cap, requests_per_sec as a per-agent req/s cap, both as null-or-non-negative-int, auto_pause defaulting false with its side effect, board_id's per-board scope, and the org_id/agent_user_id target roles.

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?

States a specific verb and resource ('Set an agent's caps') and immediately clarifies it is a PUT-replace operation with null-clears-field semantics, which distinguishes it clearly from the read-side sibling get_agent_budget.

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?

Explains when to pass board_id (per-board override, writes/day only) versus omitting it for the org-wide budget, and states the owner/admin prerequisite and Scale/Agency tier gate. It stops short of explicitly naming get_agent_budget as the read counterpart, so it is strong but not fully complete on alternatives.

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