Skip to main content
Glama

Set wallet caps

stack_set_wallet_caps
Destructive

Set or change the caps on an agent account's wallet after it is open. Caps are a controls feature: this needs the owner's controls (CONTROLS_REQUIRED otherwise), and without controls the wallet has no cap and its own USDC balance is the limit. per_payment_cap_usdc is the most one payment may be and daily_cap_usdc the most in a rolling 24 hours; any positive amount, STACK sets no maximum, and the daily cap must be at least the per-payment cap when both are set. A field left out is not changed; null removes that cap. Owner or admin only (accounts:manage); an agent context is refused. Never metered. STACK's relay holds the new caps at once. The wallet's signer rule at Privy was fixed when the wallet opened and only its owner can edit it, so the answer's signer_policy says what Privy itself still holds per payment, with covers_caps false when a cap was raised past it (the owner raises that rule at Privy). Returns per_payment_cap_usdc and daily_cap_usdc (strings, or null for none) and signer_policy.

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": {
      "account_id": "<account_id>"
    },
    "name": "stack_set_wallet_caps"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYesAgent account id (acct_*)
daily_cap_usdcNoThe most in a rolling 24 hours, in USDC; at least the per-payment cap; null removes the cap; left out, unchanged
per_payment_cap_usdcNoThe most one payment may be, in USDC; null removes the cap; left out, unchanged

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the controls dependency and error, the uncapped fallback behavior, that any positive amount is accepted and no maximum is enforced, the cross-field rule that the daily cap must be at least the per-payment cap, that omitted fields are unchanged and null removes a cap, that the call is never metered, and the Privy signer-rule caveat including when covers_caps is false. The destructive hint is also explained in concrete terms by cap removal semantics.

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?

Front-loads what the tool does and the hard precondition, then moves to constraints and finally return shape. It is dense but nearly every clause carries information; the signer_policy explanation is long and partially restates what the return value description could carry.

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?

With no output schema, the description takes on the duty of explaining the return values and does so fully, including the string-or-null representation and the signer_policy covers_caps flag. For a mutation tool with three parameters and a non-obvious downstream dependency, nothing material is left out.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds real cross-parameter meaning: the daily cap must be at least the per-payment cap, units are USDC, no upper bound is imposed, and the null-vs-omitted distinction. It stops short of adding anything about account_id beyond its acct_* prefix.

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: setting or changing caps on an agent account's wallet, with the important qualifier that the wallet must already be open. 'Wallet caps' is distinguishable from sibling budgeting tools like stack_set_account_budget by the scope word 'wallet' and the named parameters.

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?

Gives clear preconditions: caps only exist after the wallet is open, the owner's controls must be present (CONTROLS_REQUIRED otherwise), and only owner/admin with accounts:manage may call it while agent contexts are refused. It does not explicitly name an alternative tool for account-level budgets, but the when-to-use conditions are explicit.

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.