Skip to main content
Glama

configure_spending

Set and view x402 payment spending limits by defining per-call maximums, daily caps, and auto-approve thresholds that control USDC spending without explicit confirmation.

Instructions

View or update spending limits. Set per-call maximum, daily cap, and auto-approve threshold for x402 payments. The auto-approve threshold controls how much can be spent without explicit user confirmation (default: $0.05).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "configure_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
daily_capNoMaximum USDC per day (e.g. '50.00')
per_call_maxNoMaximum USDC per single API call (e.g. '5.00')
auto_approve_thresholdNoAuto-approve threshold in USDC — payments under this execute without confirmation (e.g. '0.05')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.14

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a genuinely important behavioral trait: the auto-approve threshold governs how much is spent without explicit user confirmation, and it states the $0.05 default. It omits other mutation-critical behavior — whether omitted fields preserve existing values, whether limits are per-wallet or global, and what permissions are needed to change caps.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action, then the configurable fields, then the one non-obvious setting. No filler or redundancy.

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 three-optional-parameter configuration tool with no output schema and no annotations, the definition covers purpose, fields, and the one setting with side effects. The main remaining gap is partial-update semantics — whether sending a single field leaves the others untouched — which matters for safe invocation.

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 description coverage is already 100%, so all three parameters are documented in the schema with examples. The description's explanation of auto_approve_threshold largely restates the schema text ('payments under this execute without confirmation'), so it sits at the baseline rather than adding new semantics.

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 opens with a specific verb-resource pair ('View or update spending limits') and names the three concrete fields being configured, so an agent immediately knows both the read and write capability. It does not, however, distinguish this tool from siblings such as check_balance or call_endpoint, so it falls short of 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 only implied by the phrase 'View or update' plus the fact that zero parameters are required — an agent can infer that an empty call reads current limits and a populated call mutates them. There is no explicit statement of when to use this versus other tools, no prerequisites, and no when-not guidance.

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