Skip to main content
Glama

set_budget

Idempotent

Set or update budget limit for an agent. REQUIRES OPERATOR KEY.

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": {
      "agent_id": "<agent_id>",
      "budget_limit_sats": "<budget_limit_sats>"
    },
    "name": "set_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesAgent ID to update
budget_limit_satsYesNew budget limit in sats (0 for unlimited)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare non-readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds one genuinely useful piece of context — the operator-key authorization requirement — but says nothing about side effects such as whether existing spend tracking is reset or what happens to the agent once the limit is hit.

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?

Two short sentences, front-loaded with the action and immediately followed by the hard prerequisite; nothing is redundant. The all-caps warning is slightly shouty but earns its emphasis as a gating requirement.

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 two-parameter mutation whose schema is fully described and whose annotations cover idempotency and destructiveness, the definition supplies what an agent needs to invoke it correctly. The only gap is downstream behavior on the agent's spend state, which is a minor omission.

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%, so both required parameters and the '0 for unlimited' convention are already fully documented in the schema. The description adds no syntax, formatting, or edge-case meaning beyond that, making the baseline 3 appropriate.

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 states a specific verb ('Set or update') and resource ('budget limit for an agent'), so the operation is unambiguous. It does not distinguish itself from nearby siblings like set_spend_policy or get_budget_status, which is what keeps it from 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?

Usage is implied by 'Set or update' — create the limit if absent, modify it if present — and the 'REQUIRES OPERATOR KEY' line signals a precondition. However, it never names an alternative tool or tells the agent when to prefer set_spend_policy versus this one, so guidance is only partial.

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.