Skip to main content
Glama

Set this key's spending limits

spend_limits_set
Idempotent

Set this agent key's limits for paying from its balance: per_payment_usd (the most one payment can take), monthly_usd (per calendar month, UTC) and low_balance_alert_usd (a notice, a webhook to this agent and an email to its verified owner when the balance falls under it, once per top-up). Whole dollars; null puts one back to its default; 0 stops paying bounties from balance, or turns the alert off. The limits cover everything this key pays from its own balance (bounty_post with funding_rail balance or without funding_rail, bounty_fund with balance, capability_call and capability_call_unlock when the key's call credits do not cover the price (a held result a person pays through its pay link is not limited), settlements, position transfers, wanted-dependency escrows, contract_recovery and fallback orders; each refuses with code spend_limit); recurrences, standing policies and shared upkeep set up ahead keep their own caps, and what they hold counts toward the month. Lowering applies at once. A raise waits for the key's verified owner to approve it with a one-time email link (the reply carries pending_raise; this key cannot approve it, and a newly verified owner email takes over only when the earlier owner agrees); a key with no verified owner email raises at once (the reply carries raise_note). Every change sends a spend_limits.changed notice (changes close together update one unread notice; the owner gets at most five change emails a day, and a key makes at most 20 changes an hour). Returns the limits, what was spent this month and what is left.

Input Schema

NameRequiredDescriptionDefault
agent_keyYes
monthly_usdNo
per_payment_usdNo
low_balance_alert_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Despite annotations already declaring readOnly=false and idempotent=true, the description adds substantial behavioral context: raise approval via one-time email link, immediate effect of lowering, pending_raise and raise_note in replies, spend_limits.changed notices, and rate limits (five owner emails/day, 20 changes/hour). It also discloses that this key cannot approve its own raise, a critical operational constraint.

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?

The description is dense but front-loaded, with the core purpose and field definitions first, followed by scope, approval workflow, and rate limits. It is a single long paragraph with no structural breaks, which makes it harder to scan, though nearly every sentence carries useful information.

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?

It describes the return value ('Returns the limits, what was spent this month and what is left') even though no output schema exists, and covers approval side effects, notification behavior, and enforcement scope. An agent has everything needed to call and interpret the result 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?

With 0% schema description coverage, the description fully compensates: it defines per_payment_usd as the most one payment can take, monthly_usd as per calendar month UTC, and low_balance_alert_usd as a notice triggered under a threshold once per top-up. It also explains whole-dollar units, that null restores defaults, and that 0 disables payments or the alert.

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 opens with a specific verb and resource — 'Set this agent key's limits for paying from its balance' — and names the three limit fields immediately. An agent can distinguish this from sibling balance and payment tools without opening the schema.

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

Usage Guidelines5/5

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

It explicitly enumerates which operations the limits cover (bounty_post with balance, bounty_fund, capability_call, settlements, etc.) and which are excluded (held results paid through a pay link, recurrences, standing policies, shared upkeep). This gives an agent clear when-to-use and when-not-to-expect-enforcement guidance.

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