Skip to main content
Glama

Set an agent's budget limit (PAID $0.25)

v1_agent_treasury_budget

Sets an agent's spending budget limit in USD for a given scope. Use it to cap agent treasury spending and prevent overspending.

Instructions

Set an agent's budget limit (PAID $0.25)

Remote route: POST /v1/agent/treasury/budget (0.25 USD x402/base/usdc on eip155:8453).

Input Schema

NameRequiredDescriptionDefault
scopeNo
limit_usdNo
requestIdNo

Output Schema

NameRequiredDescriptionDefault
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior3/5

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

With annotations present (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), the description adds genuinely useful pricing context: $0.25 via x402/base/USDC, plus the remote route. However, it doesn't address the non-idempotent nature (repeated calls may create duplicate budgets), permissions, or scope effects.

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

Conciseness3/5

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

Two short sentences, but the first sentence duplicates the title verbatim, including the 'PAID $0.25' tag already in the title. The route and payment info is front-loaded usefully, but the redundancy wastes space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, non-idempotent mutation tool with 0% parameter documentation, the description gives only cost and route. It omits scope semantics, side effects, and how setting a budget relates to the other treasury operations. The output schema exists, so return values needn't be explained, but the input side is badly under-described.

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

Parameters2/5

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

Schema description coverage is 0%, and all three parameters (scope, limit_usd, requestId) have only bare titles. The description mentions 'budget limit', loosely covering limit_usd, but says nothing about what 'scope' accepts or what requestId is for — a heavy gap given zero schema documentation.

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 and resource: 'Set an agent's budget limit'. It's clear what the tool does, but it doesn't distinguish itself from siblings like v1_agent_treasury_authorize, v1_agent_treasury_commit, or v1_budget_preflight, which all touch agent spending.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this vs the many other treasury tools (authorize, commit, release, report, budget_preflight). An agent can't tell whether to set a budget before or after authorization, or whether a preflight is required first.

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

Deploy Server

Other Tools