Skip to main content
Glama

spendctl

Create a spendctl sandbox

sandbox_create

Creates an isolated spendctl sandbox and returns its sandbox_id. Call it first: every other tool needs the sandbox_id, and one sandbox serves a whole conversation (create another only to try a different preset). The sandbox is a real spendctl sidecar with a throwaway wallet, a mock x402 facilitator and two mock paid APIs; no real money moves and nothing outside the sandbox is reachable. Returns the sandbox_id, the agent's policy (budgets, allowed hosts, approval rule) and the paid endpoints with their prices. Limits: 5 sandboxes per minute per client; a sandbox expires after 2 hours without calls (24 hours at most). Example: preset "strict" to see refusals, "approvals" to see a payment held for a human.

Input Schema

NameRequiredDescriptionDefault
presetNoPolicy preset. default: comfortable caps, both endpoints allowed; strict: $0.015 per request and $0.03 per day, weather only, so the search API and a fourth weather call are refused; approvals: payments at or above $0.015 wait for approvedefault

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / preset / description
      Previous value: -"default: comfortable caps; strict: low caps that cause refusals; approvals: payments at or above $0.015 wait for a human"New value: +"Policy preset. default: comfortable caps, both endpoints allowed; strict: $0.015 per request and $0.03 per day, weather only, so the search API and a fourth weather call are refused; approvals: payments at or above $0.015 wait for approve"
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover the basic safety hints; the description goes further by explaining that the sandbox has a throwaway wallet, mock facilitator and mock APIs, that no real money moves, and that nothing outside the sandbox is reachable. It also discloses rate limits (5/min) and expiry rules (2 hours idle, 24 hours max), which the agent could not otherwise know.

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?

The core action and the call-first constraint are front-loaded in the first two sentences. Every subsequent sentence (environment nature, return contents, limits, preset examples) earns its place with distinct 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?

With no output schema, the description correctly explains what is returned (sandbox_id, policy with budgets/allowed hosts/approval rule, paid endpoints and prices). It also covers lifecycle and rate limits, leaving nothing an agent needs in order to call and reuse the tool correctly.

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 100% and the preset enum is already fully documented in the schema, so the baseline is 3. The description nevertheless adds intent-level guidance—using 'strict' to see refusals and 'approvals' to see a payment held—which helps an agent choose a preset rather than merely pass a valid enum value.

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 ('Creates an isolated spendctl sandbox') and immediately names the return value (sandbox_id). It also distinguishes itself from all siblings by declaring that every other tool needs the sandbox_id, making its role as the entry point unambiguous.

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?

Gives explicit when-to-use guidance ('Call it first: every other tool needs the sandbox_id') and a precise when-to-create-another condition ('create another only to try a different preset'). No alternative is left to inference.

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