Skip to main content
Glama

402Signal

Endpoint selection. Buyer protection. Verifiable records.

402Signal helps an automated buyer choose a paid API that fits its task and purchase rules, check the current offer, and retain evidence of the decision. Connect it before your existing payment client signs. Your wallet keeps control of funds and authorization.

Start with

What 402Signal does

A task and criteria

Discover candidates, compare current offers against your budget and allowed networks, and select from the eligible candidates evaluated.

An endpoint URL

Check that service's current offer against your purchase rules.

A qualifying check costs $0.003 USDC, including discovery when needed, current-offer comparison and selection, and bound evidence when requested on a supported profile. Completed normal misses are free. Seller payments and network costs are separate. Selection is bounded by the candidates checked; it does not establish a whole-market optimum.

Use the local guard to verify the signed record against your original request and the current seller offer before your authorization callback runs. Local verification and reuse within the guard's validity limits do not require a second paid check. The signed record supports later review of the recorded criteria, selected terms and decision evidence; it does not guarantee seller delivery or output quality.

How it works · Developer guides · Supported profiles · Pricing · Trust and verification

Start here

  1. Choose a service with a task, budget, allowed networks and selection priority, or check a known endpoint.

  2. Request bound evidence on the matching supported profile. Verify the response with your original request and independently pinned log key.

  3. Let your own payment client enforce wallet policy and authorize the seller payment. Retain the private evidence, payment records and delivery result separately.

npm install @402signal/route-guard@0.8.0
npm audit signatures

The JavaScript quickstart connects the guard to an existing x402 client with an explicit network and price cap. The route-guard package also exposes offline verification and caller-owned authorization helpers. For receipt verification and bounded HTTP requests in Python:

pip install 402signal==0.2.0

The Python client does not sign or pay. Try the offline buyer checks without a wallet, or use the free readiness check to inspect a listed endpoint's unpaid response.

Related MCP server: pulsefeed-x402-mcp

MCP

Connect a Streamable HTTP client to https://402signal.com/mcp/v0.3.1. The hosted tools are check, preview and validate. Preview and validation are free; paid checks require an x402-capable HTTP client and explicit payment authority.

For a stdio host, run python scripts/glama_stdio.py with Python 3.12 or later. This small adapter forwards requests to the hosted service. It has no third-party Python dependencies, does not sign or submit payments, and reports paid challenges as tool errors. See MCP integration and Glama configuration.

What is in this repository

Path

Purpose

sdk/route-guard

JavaScript receipt and offer verification, payment-client hook and recovery helpers

sdk/python

Python HTTP client and offline receipt verifier

integration

Buyer-owned reference clients, supported payment adapters and offline checks

protocol

Public contract snapshots, receipt/checkpoint primitives and independent anchor-verification instructions

docs

Integration guides, record formats, recovery and compatibility boundaries

scripts/glama_stdio.py

Standard-library stdio adapter for the hosted MCP endpoint

tests/fixtures/mcp

Published MCP tool contracts for forwarding tests

The hosted routing service operates at 402signal.com. This repository contains public clients, adapters and verification contracts; it is not a self-hosted deployment of that service. Published client release assets and package versions have their own identities; check capabilities for current install pins and digests.

Evidence and payment boundaries

The immediate receipt uses an Ed25519 checkpoint and inclusion proof. A later cumulative Algorand Falcon checkpoint is separate evidence; pending is not confirmed. Public log entries contain salted commitments, not your private request or complete purchase history. Keep your own original request, receipt and private reveal: private response recovery is limited to 120 seconds from the original request start.

Supported fee-payment networks, seller-observation profiles and buyer signing adapters are different capabilities. Check the current compatibility guide before choosing a rail. A chain appearing in a seller offer does not imply that every scheme, asset or wallet is supported.

The guard complements wallet policy. It does not custody funds, insure purchases, promise refunds, certify a seller, or force a compromised buyer runtime to obey its checks. Never create a new payment automatically after an uncertain result; reconcile the original attempt first.

Contribute and report issues

See CONTRIBUTING.md for local validation and SECURITY.md for private vulnerability reporting. The root MIT license applies except where a package supplies its own license. The JavaScript and Python SDKs include their Apache-2.0 licenses and notices; check the license in the package you use.

Available Tools

3 tools
checkA

Runs the paid pre-flight check on a live paid API endpoint: probes one exact HTTPS url, or the candidates discovered for a need, applies the buyer's price, network and readiness rules, and returns the selected offer with signed evidence of what the seller quoted (price, recipient, asset, network, expiry) before the agent pays the seller. Does not buy the seller's service, hold keys or pay anything for the agent; the agent keeps its wallet and pays the seller separately.

Use preview to discover candidates without paying, validate for a free readiness check of one listed URL, and check when a fresh live observation or a signed receipt is needed before a seller payment. Never call check to pay a seller. After billing.settlement_state=unknown, stop and reconcile; never create another authorization. route is the former name of this tool and is still accepted.

Cost and outcomes: the first unsigned call answers HTTP 402 with the $0.003 USDC checking-fee terms (Base, Solana or Algorand), which an x402-capable HTTP client pays. The fee settles only when a qualifying live offer is found; a completed miss (HTTP 200, live=false, typed miss_reason) is free; a settled fee is not reversed if the offer later changes. HTTP 503 with binding_error=route_binding_unavailable means the seller answered but no probed candidate could be bound to a signed receipt: a completed unpaid answer, not an outage (the reference wrapExactAuthorize reports state=binding_unavailable with keep_calling_route true).

Parameter interactions: need or url is required; with both, url is probed directly and no discovery runs. policy is plain English compiled into the structured fields; an explicit structured field wins over the compiled value, and phrases that do not compile are echoed in unresolved_constraints, never guessed. networks is a hard allowlist judged on the current 402; prefer_network only orders results and never filters. Three independent price bounds: max_price_usd (seller price in USD), max_amount_atomic (atomic units of the seller's asset) and max_total_cost_usd (seller price plus known fees); every bound fails closed when its value is unknown. require_route_binding=true implies require_transparency and may select the next bindable candidate. Defaults: objective best, search_depth standard (up to 7 probes; thorough up to 15; hard ceiling 20), accept_payTo_change false, require_route_binding false. Guide: https://402signal.com/developers#route-binding

Inputs: url, need, policy, networks, +19 more. Returns: url, live, risk, payTo, +42 more

previewA
Read-onlyIdempotent

Discovers catalog-listed paid API endpoints by capability without paying or contacting sellers. Returns claimed listings and earlier observations; not_probed=true means no new live check. Results may be incomplete.

Free and read-only: no fee, no seller contact, nothing recorded; safe to repeat. It queries the current upstream catalogs and the local shadow catalog. Use validate for a free readiness check of one listed URL, and check for a fresh paid observation or a signed receipt before paying.

Pass a nonblank need (capability), not a URL; a URL in need finds nothing. networks is a hard allowlist and prefer_network only orders the results within it; an empty or unrecognized networks value restricts to nothing rather than widening to every network. Seller-written fields in hits are catalog claims, not observations.

Inputs: need (required), networks, prefer_network. Returns: hits, need, total, cached_s, +8 more

validateA
Read-onlyIdempotent

Checks unpaid readiness for one concrete HTTPS seller URL already listed in the local catalog (for example a URL from preview). Compares claimed against observed payment and readiness flags without buying the service.

Free: one unpaid probe of the seller, no fee, nothing paid, and the public numbers do not change; safe to repeat. Use preview to find listed URLs; use check instead when the URL is not listed, when price or network rules must apply, or when a signed receipt is needed before paying.

Supply the exact listed URL including its query string. Unlisted or modified URLs return miss_reason=unlisted without a probe (not listed, not proven offline). Inspect live, readiness, observed and miss_reason; HTTP 200 alone is not success. No price or network filter and no signed receipt.

Inputs: url (required). Returns: url, live, n_7d, flags, +6 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool maps to a distinct phase: preview discovers candidates without contacting sellers, validate performs a free single-URL readiness probe, and check runs the paid live probe with pricing/network rules and a signed receipt. Though validate and check both probe URLs, the free/paid and unsigned/signed distinctions are explicit and non-overlapping.

    Naming Consistency5/5

    All three tool names are single lowercase imperative verbs—preview, validate, check—so the naming style is consistent even without a noun object. There is no snake_case/camelCase mixing or irregular pattern.

    Tool Count5/5

    Three tools is lean but well-scoped for this focused domain: discovery, readiness validation, and paid pre-flight checking each earn their place. No tool feels redundant, and none is missing for the server's stated purpose.

    Completeness5/5

    The workflow is complete: agents can preview candidates for free, validate a specific listed URL for free, then check for a live signed offer before paying. The server deliberately leaves the actual payment to the agent, which is documented rather than a gap.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers