Skip to main content
Glama

agora_pay_guard

Pre-payment guard for AI agents: before paying an x402 endpoint, checks its payment request (official USDC contract, network, price vs your spending policy, payTo address against US OFAC sanctioned crypto addresses and the Chainalysis on-chain oracle, domain age via RDAP, AMF/ESMA blacklists, HTTPS). Returns ALLOW / REVIEW / HALT with the safest payment option and an Ed25519-signed receipt for your audit trail. Price: $0.01 USDC per call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe x402 endpoint the agent is about to pay (https)
methodNoGET or POST (default GET)
policyNoOptional spending policy: max_price_usd, budget_remaining_usd, allowed_domains[], allowed_networks[] (CAIP-2), expected_pay_to
payment_requiredNoOptional: the 402 PAYMENT-REQUIRED header (base64) or JSON body the agent already received

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the verdict vocabulary (ALLOW/REVIEW/HALT), the safest-payment-option output, an Ed25519-signed receipt for audit, and the per-call price. It omits auth requirements, latency, and behavior when a check source is unreachable, leaving minor gaps.

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 the core purpose, then the check list, verdict outputs, and cost. It is dense but every clause is informative and there is no filler, though the long parenthetical check list slightly burdens readability.

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 tool with no output schema and no annotations, the description covers return values, the signing mechanism, and the usage cost, and the nested policy object is schema-documented. Only auth/prerequisite details and degraded-source behavior are missing.

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 url, method, policy, and payment_required; the baseline is 3. The description reinforces what policy and payTo checks mean in context but adds no syntax or format detail beyond the schema.

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: it guards payments by checking an x402 endpoint's payment request before the agent pays. It enumerates the exact checks performed (USDC contract, network, price vs policy, payTo vs OFAC/Chainalysis, domain age, blacklists, HTTPS), which distinguishes it cleanly from the sibling audit/check tools.

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?

Clearly states the trigger condition: call it 'before paying an x402 endpoint.' That gives explicit timing context. It does not name or exclude any sibling alternative, nor describe failure/fallback paths, so it falls short of full when/when-not guidance.

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