Skip to main content
Glama

Get agent spend caps

spend_cap_get
Read-onlyIdempotent

0.005 USDC per call via x402, no key (unpaid call returns PaymentRequired; retry with params.meta["x402/payment"]). Advisory (complements your wallet's enforced hard limits): read the spend caps of a payer address plus what it spent in the last 24h (and in a session). Needs a key mts (X-API-Key header or apiKey argument). No key? call settle_trial_key (free, 50 calls/7 days). Full plan 1 USDC/30d incl. 1,000 calls via x402.

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": "spend_cap_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
payerNoPayer / agent wallet address 0x… (40 hex).
apiKeyNoYour MoneyTools Settle key mts_… (alternative to the X-API-Key header). No key: call settle_trial_key.
sessionIdNoYour session / run id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond annotations (readOnly, idempotent), the description discloses the pay-per-call cost model, that an unpaid call returns PaymentRequired and how to retry via params._meta["x402/payment"], and which credential (mts_ key via header or argument) is required. It also clarifies the advisory versus enforced distinction, which is real behavioral context not present in the annotations.

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?

Every sentence carries information — cost, auth, fallback, semantics — and the dense format suits a paid tool. But it leads with pricing rather than purpose, and the no-key situation is stated twice ("no key (unpaid call returns PaymentRequired…)" then "No key? call settle_trial_key"), costing some efficiency.

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 paid, key-gated tool with no output schema, the description covers cost, payment retry mechanics, authentication, the free-trial escape hatch, and the shape of the returned data (caps plus 24h and session spend). What remains unstated is the concrete structure of the returned cap values, which some agents would want before parsing.

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 coverage is 100%, so the schema already documents payer, apiKey, and sessionId. The description only loosely maps to these ("a payer address", "in a session") without adding format, defaults, or interaction detail beyond the schema, so the baseline 3 applies.

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 core sentence — "read the spend caps of a payer address plus what it spent in the last 24h (and in a session)" — names a specific verb and resource and scopes the result window. It distinguishes itself from a write-side sibling (spend_cap_set) by framing the operation as a read, though the purpose is preceded by a pricing sentence rather than being front-loaded.

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?

It explicitly positions the tool as advisory, complementing the wallet's enforced hard limits, which tells an agent this is an informational pre-check rather than an enforcement gate. It also names a concrete alternative path when no key is present (settle_trial_key). It does not, however, distinguish itself from other read-side siblings such as spend_check or spend_log.

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