Skip to main content
Glama

Agent safety checks: prompt-injection scan, honeypot check, x402 preflight + crypto data (USDC/x402)

Spend firewall: allow, hold or block an agent payment before it happens

shield_check
Read-only

Spend firewall for AI agents with a wallet or card, called before every payment: checks your rules (per-payment cap, daily budget reserved atomically, allow/block lists, chains, tokens, approval threshold, new merchants, kill switch), the merchant or checkout URL (preflight), the text that triggered the payment (input-guard: hidden instructions) and non-USDC tokens (token-risk). Returns allow, hold or block with reasons; with a stored policy the amount is reserved until confirm or release. 0.02 USDC base (new payers 0.02, >10 payments 0.014; 1 pack call). After: pay, then POST /shield/confirm with the reservation_id (or /shield/release if you did not pay) (the result's next field has the exact call).

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": {
      "payment": "<payment>"
    },
    "name": "shield_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNoinline rules (stateless); for a daily budget and remembered merchants store them with POST /shield/policy and send policy_id
paymentYes
triggerNothe instruction, message or page that made the agent want to pay
policy_idNoa stored policy (needs your key as X-Bundle-Token or bundle_token)
payment_txNoHash of a USDC transfer on Base to payTo (≥ the price, ≤ 72 h old) instead of an x402 signature.
bundle_tokenNoToken from buy_signal_pack, buy_subscription (pro/desk) or buy_enterprise instead of paying per call.
hold_secondsNohow long an allowed amount stays reserved (default 900)
payer_addressNoWallet you pay from: the payment-required error quotes your tier (0 payments base price (new-payer surcharge paused), 1-10 base, >10 -30 %) and, from the third payment, an upgrade with your own spend.
idempotency_keyNosame key = same reservation, never reserved twice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources