TWZRD Agent Intelligence

v1.0.15
xyz.twzrd.intel/twzrd-agent-intel Checked 1 day ago Published 11 days ago

Pre-spend trust for AI agents that buy: check x402 services and product listings before paying.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_readiness_card_tool

PRIMARY free pre-spend gate (advisory). Pass seller_wallet OR resource_name. wash_flagged=true never soft-allows. Unlabeled leftover 0.05 / leftover=0 is not a unit price. When to use: before any x402 payment to a seller/resource. When not to use: after you already decided to refuse; use verify_receipt for signed receipts only. Pricing: free. Result is advisory (buyer policy still applies). Hard-stops: wash_flagged=true never soft-allows (decision=block / do_not_pay; no warn/allow/quick). Unlabeled leftover 0.05 / leftover=0 is not a unit price; read pri…

ParameterTypeDescription
agent_intentstringNatural-language intent describing the planned paid action.
buyer_walletstringBuyer's Solana wallet public key used for spend-context checks.
marketplace_scoreintegerOptional upstream marketplace trust score (0-100) to blend into preflight context.
price_usdcnumberCaller-supplied exact unit price in USDC. Leave unset unless you have an exact quote. Unlabeled leftover 0.05 / leftover=0 is not a unit price.
queried_pubkeystringConsumer pubkey, echoed on output when provided (attribution only).
resource_namestringProvider or resource label in a marketplace (for example marketplace:agent-name). Provide this OR seller_wallet.
resource_urlstringCanonical endpoint URL for the resource, if available.
seller_walletstringSeller payTo for the listing or endpoint: a Solana base58 wallet (32-44 chars) or a Base 0x address. Provide this OR resource_name. CRITICAL: never pass OpenAPI templates (:pubkey, {pubkey}, {seller_w…

evaluate_x402_resource

One-shot x402 guard. Fetches resource_url, extracts the seller wallet from the 402 accepts array (prefers Solana network entries), runs TWZRD preflight, and returns a spending decision. The accepts array is read from the JSON body; when the body names no payTo (x402 v2 sellers may send an empty body, and HEAD always does), it is read from the base64 PAYMENT-REQUIRED header. If the body and the header name different payTo wallets, nothing is evaluated (decision=warn). A challenge that cannot be read returns decision=warn with an error and no trust_score; it is never…

ParameterTypeDescription
resource_url *stringURL of the x402 resource to evaluate before paying. Will be fetched to extract 402 payment requirements.
agent_intentstringNatural-language description of what the agent intends to purchase.
methodstringHTTP method to use when probing the resource. Default: GET.
price_usdcnumberCaller-supplied exact unit price in USDC — overrides a 402 exact quote. Leave unset to use the 402-reported amount when price_kind=exact. Unlabeled leftover 0.05 / leftover=0 is not a unit price.

low_level_preflight

Low-level preflight check. Returns a richer result object including paid_quick_endpoint ($0.001 first hop) and optional paid_trust_endpoint ($0.05 V7). wash_flagged=true never soft-allows. Unlabeled leftover 0.05 / leftover=0 is not a unit price. Prefer get_readiness_card_tool for most callers. Use this when you need max_spend_recommendation_usdc, full_report_hint, or the suggest_full_report flag. The embedded `readiness_card` carries the SAME full shape as get_readiness_card_tool (see the outputSchema). Hard-stops: wash_flagged=true never soft-allows (…

ParameterTypeDescription
agent_intentstringWhat the agent intends to do with the purchased response or tool.
buyer_walletstringBuyer's Solana wallet public key; enables buyer-context evidence in scoring.
marketplace_scoreintegerOptional marketplace-provided score (0-100) for blend-in scoring context.
price_usdcnumberCaller-supplied exact unit price in USDC. Leave unset unless you have an exact quote. Unlabeled leftover 0.05 / leftover=0 is not a unit price.
resource_namestringProvider or listing identifier to evaluate before payment.
resource_urlstringCanonical endpoint URL for the resource, if available.
seller_walletstringSeller payTo (Solana base58 or Base 0x address) for reputation and spend checks.

verify_root_inputs

Independent root verification: recomputes the leaves, dataset hash and root from the public root data.

ParameterTypeDescription
resource_nameLegacy on-chain protocol resource (deposit/claim/settle) for auto-detection and seq hints.
root_seqSpecific root sequence to verify. If omitted, best-effort resolution via resource metadata or latest.
seller_walletSeller wallet for legacy on-chain protocol resource detection.

score_wallet_for_intel

Free discovery: PAYER-side 0-100 intel score for a wallet from the x402 payments it SENT (paid calls, distinct counterparties, volume, recency). Not a seller check: to vet a seller/payTo before paying, use get_readiness_card_tool (gate) or get_provider_reputation / get_merchant_card (seller reputation). A pure seller scores 0 here by construction and the response says so in seller_side_hint. A Base 0x wallet is scored from the relayer-attributed x402_base_daily rollup (90d) with the same shape; no Base wash graph exists yet, so its wash_flag is "unknown" unless…

ParameterTypeDescription
wallet *stringWallet to score: a Solana base58 pubkey or a Base 0x address, using x402 payment-history intelligence.

get_top_intel_agents

Leaderboard of observed payer wallets in the x402 settlement graph, each with its intel score. This is behavioral corpus research, not identity proof or evidence that the wallet is a TWZRD customer. Ranks by the wash-discounted effective_score (single-counterparty fleets are demoted, not hidden) with a deterministic tiebreaker. Set min_paid_calls to suppress one-shot wallets and max_days_since_last to suppress dormant ones.

ParameterTypeDescription
limitintegerMaximum number of ranked payer wallets to return (default 10).
max_days_since_lastnumberOnly include wallets active within this many days (default null = no recency filter). Use e.g. 14 to exclude dormant or historical payers.
min_paid_callsintegerFilter out wallets with fewer than this many observed paid calls (default 0 = no filter). Use to get credible *active* counterparties, not a raw dump.

get_provider_reputation

Free discovery: corpus-backed SELLER reputation for a merchant/provider wallet. Answers "is this provider organic, narrow, or a wash fleet?" from the merchant's inbound payment graph over the last 90 days: unique payers, repeat-payer %, heavy-fleet revenue concentration, captive-payer % (onboarding-sink proxy), and a scripted-fleet uniformity signal, and top_payer_tx_pct (captive concentration). Returns wash_label + reputation tier + wash_flagged (tri-state: true | false | null; null = never evaluated, not clean). Complements score_wallet_for_intel (payer sid…

ParameterTypeDescription
merchant *stringSeller/merchant pay_to address to score on inbound corpus reputation: a Solana base58 wallet or a Base 0x address.

verify_x402_settled_claim

Verify a receipts-ledger settlement; this is evidence, not a spend decision.

ParameterTypeDescription
settlement_tx *stringSolana transaction signature only. No claim body is accepted. Verifies that signature against x402_payment_receipts and a freshly fetched finalized transaction: match requires the only positive USDC b…

submit_contribution_claims

PoECX bridge: report settlements from your OWN rails (not TWZRD's paid routes) for cross-check against TWZRD's independently-ingested x402 corpus, by on-chain signature. A claim whose tx_signature, payer/merchant, and amount all match what TWZRD's own ingest independently observed is materially stronger evidence than either a bare self-report or the anonymous corpus alone — the signature is real and on-chain, and a mismatch can't be forged to pass. Unmatched claims are returned too, with a reason, never silently dropped. This is a preview, not an unlock…

ParameterTypeDescription
claims *arraySelf-reported settlements to cross-check. Each item: {"tx_signature": str, "chain": "solana"|"base", "amount_usdc": float (optional), "transfer_index": int (optional, Solana transfer_index / Base log_…
wallet *stringThe wallet these settlement claims are being reported for.

get_poec_score

Free preview: PoEC v0 (Proof of Economic Contribution) for a payer wallet, computed from the same observed x402 snapshot score_wallet_for_intel returns. poec_score = log10(1 + observed USDC sent) x success_quality x diversity x wash_cleanliness, behind hard floors (>=5 paid calls, >=3 distinct counterparties, wash_factor >= 0.5, not single-counterparty, wash_flag clean). Any failed floor, or an unobservable corpus, scores 0.0 with floors_passed=false - the floors fail closed, never open. wash_factor is a cleanliness multiplier (1.0 = clean) and is never invert…

ParameterTypeDescription
wallet *stringPayer wallet (Solana base58 or Base 0x) to score for Proof of Economic Contribution.

get_merchant_card

Free merchant card: observed inbound payment-graph quality around a Solana or Base receive wallet. Dual input (PR-3): pass ``wallet`` and/or ``resource_id``. Resource resolves via the first-party registry (TWZRD seed) to a pay_to, then the same graph card. Does NOT claim service quality (resource_listing_only / catalog_listing_only). HTTP twin: GET /v1/intel/merchant_card/{wallet_or_resource_id}. Compact (default) includes observed_at, stale, corpus_complete_day, corpus_age_days. Catalog services stay behind full=true. wash_flagged is tri-state: true (fl…

ParameterTypeDescription
fullbooleanIf true, include catalog services. Default is the compact decision surface.
resource_idOptional registry resource_id (HTTP path template or mcp:tool). Resolved to merchant_wallet via PR-3 seed; claim resource_listing_only.
walletReceive wallet (x402 pay_to / merchant pubkey). Observed payment-graph card only — not a business, demand, or identity attestation.

is_wash_fleet

Free discovery: cheap circular-flow (wash) check for a payer wallet. Returns the CATEGORICAL classification (clean / self_pay / reciprocal / self+reciprocal), an is_circular bool, and the observed event counts + distinct_merchants from the wallet's corpus edges. Use as a fast Sybil/wash gate before trusting a counterparty. Accepts a Solana public key or a Base/EVM address. On Base the signal reads the high-confidence x402 rollup only, and the 3-cycle ring runs as a live query instead of the Solana precomputed matview. Read ring_evaluated: when it is false…

ParameterTypeDescription
wallet *stringWallet to check for circular-flow / wash behavior: a Solana public key (32-44 base58 chars) or a Base/EVM address (0x + 40 hex).

verify_receipt

Free utility: offline-verify a portable V7 trust receipt (earlier V5/V6 receipts still verify), the "after you pay" half of the loop. Recomputes the Keccak256 leaf from the receipt's preimage (tamper-evidence) AND verifies the Ed25519 signature against the published TWZRD receipt-signing key (authenticity). Returns valid/leaf_valid/signature_valid plus the recomputed leaf and any errors. Pure and offline — no DB, no network, no payment. Pass the entire PaidReceipt object you were issued. Trust is anchored on the published key (or expected_pubkey), NOT on wh…

ParameterTypeDescription
receipt *objectThe full signed receipt object (leaf + preimage + signature + signing_pubkey) returned by the paid /v1/intel/trust surface (V7; earlier V5/V6 receipts still verify).
expected_pubkeystringOverride the trusted signing pubkey to verify against (default: the published TWZRD receipt key).
max_age_secondsIf > 0, reject the receipt if its preimage.timestamp_unix is older than this many seconds (replay/freshness protection, same as CLI --max-age and library).
require_signaturebooleanRequire and verify the Ed25519 signature (default true). Set false only to inspect an unsigned preview.

get_facilitator_footprint

Free discovery: which x402 facilitators a payer has settled through, and how many. unique_facilitators = 1 is a thin/captive agent (locked to one rail); breadth across facilitators indicates a more established cross-rail agent. Returns the facilitator_ids list plus tx/merchant context. Fail-open: a DB gap returns data_available=false rather than erroring.

ParameterTypeDescription
wallet *stringSolana wallet public key (32-44 base58 chars) to look up its x402 facilitator footprint.

get_counterparties

Free discovery (capped teaser): the top-N merchants a wallet actually pays, by event count, with per-edge tx_count / total_usdc / first+last timestamps. See WHO a counterparty transacts with before trusting it. The list is capped (default 10, max 25) and `capped`/`total_distinct_merchants` disclose how much is withheld; the FULL deduped payment graph and numeric edge weights are part of the paid intel surface (GET /v1/intel/trust/{wallet}). Fail-open.

ParameterTypeDescription
wallet *stringPayer Solana wallet public key (32-44 base58 chars) whose counterparties (merchants paid) to list.
limitintegerMax counterparties to return (default 10, hard cap 25 - this is a capped teaser).

score_wallets_batch

Free discovery: score up to 25 wallets in a single call (each via the same transparent model as score_wallet_for_intel). Convenience for triaging a set of candidate counterparties at once; `requested`/`capped` disclose any truncation.

ParameterTypeDescription
wallets *arrayList of wallets (Solana base58 or Base 0x) to score in one call (hard cap 25; extras are dropped).

compare_wallets

Free discovery: side-by-side intel for two wallets (e.g. choosing between two candidate providers). Returns both full score objects and which ranks higher by the wash-discounted effective_score ("tie" on equal, null if a side is unavailable).

ParameterTypeDescription
wallet_a *stringFirst wallet (Solana base58 or Base 0x) to compare.
wallet_b *stringSecond wallet (Solana base58 or Base 0x) to compare.

get_x402_directory

Wash overlay on ingested PayAI/CDP/Agentic listings (PayAI not_indexed). Prefer HTTP GET /v1/intel/resources for the resource join SOT (callable URL + discovery claim listed|live_402 + settlement reputation on pay_to). That surface is HTTP-only. Use this tool when you need the ingested listing overlay indexed by payTo. Not GET /v1/intel/bazaar/offers (TWZRD Bazaar catalog) and not 402 extensions.bazaar. Solana wash overlay is the only wash graph. Base listings additionally carry high-confidence EIP-3009 corpus membership from x402_base_daily; they remain wash_…

ParameterTypeDescription
flagged_onlybooleanReturn only wash-flagged listings.
limitintegerMax directory rows to return (1-500).
sourceSource filter: payai_bazaar, cdp_bazaar, agentic_market, or None for all.

twzrd_watch_add

Register a re-call watch on a seller wallet. After registration, TWZRD will proactively re-check the seller's trust intel when `recheck_after_unix` elapses and POST a notification to your webhook_url if the score/decision materially changes. The watch routes are control-proof authenticated (fail closed): signature and timestamp prove the caller holds the payer wallet's key. Return the watch row with the computed recheck_after_unix timestamp so your agent knows exactly when to expect a re-call or proactively re-check itself.

ParameterTypeDescription
payer_wallet *stringYour agent wallet address (the watcher).
seller_wallet *stringThe seller/merchant wallet to watch.
signature *stringbase58 ed25519 signature made with the payer wallet's key over the twzrd-watch/v1 message for action=register: the seven lines [twzrd-watch/v1, register, str(timestamp), payer_wallet, seller_wallet, w…
timestamp *Unix seconds used in the signed message (freshness window: 300s).
webhook_urlOptional HTTPS URL to POST when intel goes stale.

twzrd_watch_list

List active re-call watches for your agent wallet. Each watch shows the seller, current score/decision, and recheck_after_unix timestamp (untrusted V5/V6 hint). evaluateRecall / shouldRecheckTrusted is the consumer gate; do not treat due / shouldRecheck as a trusted allow. Control-proof authenticated (fail closed) via signature + timestamp.

ParameterTypeDescription
payer_wallet *stringYour agent wallet address.
signature *stringbase58 ed25519 signature made with the payer wallet's key over the twzrd-watch/v1 message for action=list: the seven lines [twzrd-watch/v1, list, str(timestamp), payer_wallet, '', '', ''] joined by ne…
timestamp *Unix seconds used in the signed message (freshness window: 300s).

twzrd_watch_remove

Deactivate a re-call watch by ID. payer_wallet must match the owner. Control-proof authenticated (fail closed): signature + timestamp prove the caller holds the payer wallet's key before the row is touched.

ParameterTypeDescription
payer_wallet *stringYour agent wallet address (must match the watch owner).
signature *stringbase58 ed25519 signature made with the payer wallet's key over the twzrd-watch/v1 message for action=remove: the seven lines [twzrd-watch/v1, remove, str(timestamp), payer_wallet, '', '', str(watch_id…
timestamp *Unix seconds used in the signed message (freshness window: 300s).
watch_id *integerWatch ID from twzrd_watch_list.

twzrd_demo_gate

No-spend transcript of the TWZRD buyer-side x402 trust gate, a recorded example, not a live run - discoverable at runtime with no install and no human. Returns a deterministic transcript showing the gate's behaviour on a fixture counterparty: the block path ABORTS and a wallet/signer is never contacted, the allow path would proceed, and ok=true. Spends no USDC, contacts no wallet. This call surfaces an EXTERNAL_RUN *candidate* in TWZRD's honest attribution ledger (it carries a non-internal integration id + your run_id, tagged with your real inbound IP). A can…

ParameterTypeDescription
integrationstringStable label for your integration (e.g. your agent/app name). Echo it plus the returned run_id in your own transcript so a run can later be confirmed. Defaults to a generic MCP-discovery label.
run_idOptional caller-supplied run id to correlate with your transcript. Omit to have one generated for this call.