AIMarket Oracle Gateway

v0.4.0
io.github.alexar76/aimarket-oracle-gateway Checked 1 hour ago Published 5 days ago

Stdio MCP: 17 verifiable AIMarket oracles, 35 pay-per-call tools for AI agents.

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

aggregate_values

Robust consensus aggregation of multi-agent estimates (Murmuration). Combines median, trimmed mean, Tukey biweight, and DeGroot consensus — resistant to outliers and a few Byzantine agents. Use for multi-agent debate resolution, ensemble aggregation, DAO voting, and distributed anomaly consensus. Cost ~$0.002 USDC per call.

ParameterTypeDescription
values *arrayAgent-submitted scalar estimates to aggregate (>=1 value).
trimnumberFraction trimmed from each tail for trimmed mean (0..0.499).

audit_compute_cost

Thermodynamic compute-cost audit via Landauer's principle (Landauer). Counts irreversible bit erasures in an operation DAG, derives the energy floor (erasures · k_B·T·ln2), efficiency, and hot gates. Use for LLM cost optimization, carbon reporting, ESG compliance, and EU AI Act energy disclosure. Cost ~$0.01 USDC per call.

ParameterTypeDescription
ops *arrayOperation DAG for Landauer audit. Each gate: {id, gate, inputs:[id,...], width?}. Reversible gates erase 0 bits; boolean gates erase fan_in-1.
temperature_knumberKelvin (default 300).

verify_compute_cost

Trustless replay of a Landauer thermodynamic audit (Landauer verify). Recomputes erasures and energy floor from the ops DAG and checks claims. Cost ~$0.001 USDC.

ParameterTypeDescription
ops *arrayOperation DAG for Landauer audit. Each gate: {id, gate, inputs:[id,...], width?}. Reversible gates erase 0 bits; boolean gates erase fan_in-1.
energy_floor_jClaimed energy floor (joules) to verify.
irreversible_bitsClaimed erasure count to verify.
temperature_knumber

compute_least_time_route

Least-time routing with eikonal potentials + dual certificate (Fermat). Finds the minimum-time path on a weighted graph and returns potentials T(v) as an optimality certificate. Use for multi-agent task routing, supply chain, logistics, and data-pipeline optimization. Cost ~$0.01 USDC per call.

ParameterTypeDescription
edges *arrayDirected weighted edges: [u, v, weight] or {from, to, cost?, latency?, reputation?} for blended refractive index.
goal *stringStart or goal node label.
start *stringStart or goal node label.
blendBlend coefficients {cost, latency, reputation, latency_scale} for dict edges.

verify_least_time_route

Trustless certificate check for a Fermat least-time route (Fermat verify). Confirms feasibility on every edge and tightness on the path in O(E) time. Cost ~$0.001 USDC.

ParameterTypeDescription
edges *arrayDirected weighted edges: [u, v, weight] or {from, to, cost?, latency?, reputation?} for blended refractive index.
goal *stringStart or goal node label.
potentials *objectDual certificate T(v) from compute_least_time_route.
start *stringStart or goal node label.
blend
pathClaimed path (node labels).
totalClaimed path total time.

analyze_cascade_risk

Systemic cascade-risk analysis via abelian sandpile / SOC (Ablation). Returns avalanche-size distribution, power-law exponent tau, VaR/CVaR tail risk, and trigger nodes. Use for financial contagion, supply-chain resilience, and microservices failure analysis. Cost ~$0.01 USDC per call.

ParameterTypeDescription
edges *arrayDirected graph edges as [u, v] label pairs.
capacitiesPer-node toppling thresholds.
dissipationintegerGrains leaked per topple.
grainsintegerStress grains to drive.
nodesOptional explicit node labels.
noncestringCommit-reveal nonce for drive schedule.
s_minintegerPower-law fit lower cutoff.
sinksSink nodes that dissipate stress.

verify_cascade_risk

Trustless replay of an Ablation cascade analysis (Ablation verify). Re-runs the sandpile and checks tau / topple_total claims. Cost ~$0.001 USDC.

ParameterTypeDescription
edges *arrayDirected graph edges as [u, v] label pairs.
claimed_tauClaimed power-law exponent.
claimed_topple_totalClaimed topple total.
dissipationinteger
grainsinteger
noncestring
s_mininteger
seedReveal seed (after nonce commitment).

get_quasirandom_sequence

Halton low-discrepancy quasi-random sequence (Lattice). Fills [0,1)^dim more evenly than RNG — faster QMC convergence for integration, pricing, and space-filling search. Deterministic from (count, dim, skip). Cost ~$0.002 USDC per call.

ParameterTypeDescription
countintegerNumber of Halton points.
dimintegerDimension (default 2).
skipintegerSkip first N sequence indices.

optimize_route

Euclidean TSP tour with optimality gap certificate (Colony). Returns tour, length, admissible lower bound, and gap = how far from optimal. Use for routing, scheduling, and logistics with a quality proof. Cost ~$0.005 USDC per call.

ParameterTypeDescription
points *arrayList of [x, y] coordinates (>=3 points) for TSP optimization.
iterationsinteger2-opt improvement budget.

get_blue_noise

Blue-noise point set via Mitchell best-candidate (Turing). Evenly spaced points with large minimum distance — spawn placement, dithering, sensor layout. Omit seed for os.urandom (reported back). Cost ~$0.002 USDC per call.

ParameterTypeDescription
candidatesintegerBest-candidate pool size.
countintegerNumber of points.
seedOptional seed for reproducibility.

analyze_network_resilience

Percolation threshold and network resilience analysis (Percola). Returns critical attack fraction f_c, collapse curves P_inf(f), robustness scalar, and keystone nodes. Use before joining exposure graphs or multi-hop agent routes. Cost ~$0.01 USDC per call.

ParameterTypeDescription
edges *arrayDirected graph edges as [u, v] label pairs.
attackstringAttack mode: targeted, random, or both.
nodesOptional isolated node labels.
noncestringCommit-reveal nonce for attack order.
samplesintegerCollapse curve resolution.

verify_network_resilience

Trustless replay of a Percola percolation threshold (Percola verify). Recomputes the attack sweep and checks the claimed f_c. Cost ~$0.001 USDC.

ParameterTypeDescription
edges *arrayDirected graph edges as [u, v] label pairs.
f_c *numberClaimed critical attack fraction to verify.
attackstringAttack mode used in the original analysis.
noncestring
samplesinteger
seedReveal seed for random attack order.

sortes_draw

ECVRF randomness bound to a caller seed (UTF-8 or 'hex:' bytes). ~$0.006 USDC.

ParameterTypeDescription
alpha *string
num_bytesinteger

sortes_verify

Verify a Sortes VRF draw using the public key and proof (hex). ~$0.001 USDC.

ParameterTypeDescription
alpha *string
pi *string
public_key *string

gauss_field

Gaussian-process posterior mean and uncertainty at query points. ~$0.006 USDC.

ParameterTypeDescription
X *array
query *array
y *array
hyperparams

gauss_suggest

Best next experiment by Expected Improvement; provide candidates or bounds. ~$0.006 USDC.

ParameterTypeDescription
X *array
y *array
bounds
candidates
goalstring
gridinteger
hyperparams
xinumber

gauss_verify

Replay a Gaussian-process posterior and check claimed mean/variance. ~$0.001 USDC.

ParameterTypeDescription
X *array
query *array
y *array
claimed_mean
claimed_var
hyperparams
tolnumber

aestus_seal

Seal data in an RSW time-lock puzzle. Sequential squarings enforce delay. ~$0.006 USDC.

ParameterTypeDescription
data *string
Tinteger
encodingstring
modulus_bitsinteger

aestus_open

Open an Aestus puzzle by sequential squaring; may take time. ~$0.01 USDC.

ParameterTypeDescription
puzzle *object

aestus_verify

Verify the claimed modular-squaring result of an Aestus puzzle. ~$0.001 USDC.

ParameterTypeDescription
b *string
puzzle *object

betti_homology

Persistent homology and Betti curves of a point cloud (up to 300 points). ~$0.008 USDC.

ParameterTypeDescription
points *array
max_diminteger
max_scale
num_stepsinteger

betti_distance

Compare topological shape of two point clouds by persistence distance. ~$0.004 USDC.

ParameterTypeDescription
points_a *array
points_b *array
diminteger
max_scale

kantor_transport

Optimal transport/Wasserstein distance; supply cost or source/sink points. ~$0.006 USDC.

ParameterTypeDescription
a *array
b *array
cost
epsnumber
methodstring
metricstring
pnumber
sink_points
source_points

kantor_verify

Certify transport feasibility, primal cost and dual optimality. ~$0.001 USDC.

ParameterTypeDescription
a *array
b *array
claimed_cost *number
plan *array
potentials *object
cost
metricstring
pnumber
sink_points
source_points
tolnumber

fourier_spectrum

Graph Laplacian spectrum, connectivity and Fiedler cut. ~$0.005 USDC.

ParameterTypeDescription
edges *array
kinteger
laplacianstring
nodes

fourier_verify

Certify an eigenpair; eigenvalue is sent as the oracle's `lambda` field. ~$0.001 USDC.

ParameterTypeDescription
edges *array
eigenvalue *number
vector *array
laplacianstring
nodes
tolnumber

get_random

Draw unbiasable, Ed25519-signed verifiable randomness (Platon). Use this when you need randomness an autonomous agent cannot bias or predict and that a third party can verify — fair selection, sampling, raffles, commit-reveal, anti-MEV ordering. The oracle signs the value, so you (or anyone) can verify it offline against the published signer key. Returns: The standard envelope (see server instructions). `result` contains: - `random_hex`: the random bytes, hex-encoded (`num_bytes` long). - `proof`: `{state_hash, tick, timestamp, entropy_commitment…

ParameterTypeDescription
client_seedstringOptional caller-supplied seed (hex) for domain separation — it is bound into the signed proof so two callers asking at the same tick get distinct, attributable randomness. Pass '' to omit.
num_bytesintegerNumber of random bytes to draw, 1..1024. The result's `random_hex` is this many bytes hex-encoded. Use 32 for a 256-bit seed/word.

get_randomness_beacon

Fetch the round's public randomness beacon (Platon) — one shared value all callers in the round observe, useful as a common coin / shared seed. Returns: The standard envelope; `result` has the same `{random_hex, proof, signature}` shape as `get_random`, but the value is the round-wide beacon (not caller-specific). Cost ~$0.004 USDC. Example: get_randomness_beacon()

ask_oracle

Ask the Platon oracle for a grounded, entropy-derived read-only answer. Use for lightweight oracle-mediated decisions (e.g. an unbiased pick among options). Read-only — no side effects, no state change. Returns: The standard envelope; `result` carries the oracle's answer payload. Cost ~$0.003 USDC. Example: ask_oracle(question="Pick one at random: red, green, or blue?")

ParameterTypeDescription
question *stringA question to answer from the oracle's entropy/state. Read-only; no side effects.

verify_random

Verify a Platon randomness draw without re-running it (Platon verify). Pass `random_hex`, `proof`, and `signature` exactly as returned by `get_random` / `get_randomness_beacon`. Confirms the Ed25519 signature over the canonical (random_hex, proof) against the signer's published public key — so you trust the math, not the service. Returns: The standard envelope; `result` is `{valid: <bool>}` (plus `error` if the input was malformed). Cost ~$0.001 USDC. Example: verify_random(random_hex="0x9f2c…", proof={"scheme": "platon-chaos-vrf/v1", …},…

ParameterTypeDescription
proof *objectThe `proof` object from the draw: {scheme, state_hash, client_seed, tick, timestamp, entropy_commitment}.
random_hex *stringThe `random_hex` value returned by get_random / get_randomness_beacon.
signature *objectThe `signature` object from the draw: {algorithm:'ed25519', public_key, value}.

compute_vdf

Evaluate a Verifiable Delay Function (Chronos) — proof that real sequential work elapsed. Use when you need provable, unforgeable elapsed time / sequential work: timed reveals, fair ordering, proof-of-elapsed-time, randomness that cannot be precomputed. Producing the output requires `T` sequential squarings over an RSA-2048 modulus (no shortcut), so a valid proof attests the delay actually happened. Verify cheaply with `verify_vdf`. Returns: The standard envelope; `result` contains: - `scheme`, `g`, `y` (= g^(2^T) mod N), `proof` (`{pi, l}`, Wesolowski…

ParameterTypeDescription
seed *stringSeed (hex) the VDF is evaluated over; it binds the generator g, so the output is tied to this input.
difficultyintegerT — the number of sequential squarings to perform (1..1_000_000). Higher T = more wall-clock work that cannot be parallelized/GPU-accelerated, i.e. a longer provable delay. ~1000 is a fast demo; tun…

verify_vdf

Verify a Chronos VDF proof in a single exponentiation. Pass the `g`, `y`, `T`, and `proof` returned by `compute_vdf` (or by any party claiming a VDF result). Confirms `y = g^(2^T) mod N` without redoing the T squarings. Returns: The standard envelope; `result` is `{valid: <bool>}`. Cost ~$0.001 USDC. Example: verify_vdf(g="0x03", y="0x9f2a…", T=100000, proof={"pi": "0x1a2b…", "l": "0x65"})

ParameterTypeDescription
T *integerDifficulty T (squarings) that produced y; must match the value used in `compute_vdf`.
g *stringGenerator g (hex) as returned by `compute_vdf`.
proof *objectThe Wesolowski proof object from `compute_vdf` — `{pi, l}` (pi = proof element, l = Fiat-Shamir prime).
y *stringClaimed VDF output y = g^(2^T) mod N (hex) from `compute_vdf`.

get_reputation_scores

Compute PageRank/EigenTrust trust scores over a directed trust graph you supply (LUMEN). Use to rank agents/entities by trust when you have who-trusts-whom edges: counterparty selection, sybil-dampened weighting, prioritization. You provide the graph; the oracle returns a normalized score per node plus convergence info. Returns: The standard envelope; `result` contains: - `scores`: array of `nodes` floats that sum to 1 (±1e-6) — node i's trust share. - `iterations`, `converged`: power-iteration convergence info. Cost ~$0.005 USDC (scales…

ParameterTypeDescription
edges *arrayDirected, weighted trust edges as `[from_index, to_index, weight]`. An edge i→j with weight w means node i confers w trust on node j. Weights need not be normalized.
nodes *integerNumber of nodes in the directed trust graph, 1..100000. Node indices in `edges` must be in [0, nodes).
dampingnumberPageRank damping factor in [0,1] (default 0.85). Lower = more weight on the uniform prior, dampening graph manipulation.

get_agent_trust

Trust score, rank, and percentile of ONE node in a trust graph you supply (LUMEN). A single-agent reputation lookup over the same PageRank as `get_reputation_scores` — use when you only care about one counterparty's standing. Returns: The standard envelope; `result` is `{target_node, score, rank (1=highest), of, percentile, graph_commitment}`. Cost ~$0.003 USDC. Example: get_agent_trust(nodes=3, edges=[[0,1,1.0],[1,2,0.5],[2,0,0.5]], target_node=1)

ParameterTypeDescription
edges *arrayDirected, weighted trust edges as `[from_index, to_index, weight]`. An edge i→j with weight w means node i confers w trust on node j. Weights need not be normalized.
nodes *integerNumber of nodes in the directed trust graph, 1..100000. Node indices in `edges` must be in [0, nodes).
target_node *integerIndex of the node whose trust score/rank/percentile to return (0-based, in [0, nodes)).
dampingnumberPageRank damping factor in [0,1] (default 0.85). Lower = more weight on the uniform prior, dampening graph manipulation.

verify_reputation

Verify LUMEN reputation scores by re-deriving PageRank over the supplied graph (LUMEN verify). Pass the graph and the `scores` (and optionally the `graph_commitment`) from a `get_reputation_scores` result; confirms they are the correct PageRank of exactly that graph. Returns: The standard envelope; `result` is `{valid: <bool>, max_abs_diff, [commitment_match]}`. Cost ~$0.002 USDC. Example: verify_reputation(nodes=3, edges=[[0,1,1.0],[1,2,0.5],[2,0,0.5]], scores=[0.33,0.33,0.34])

ParameterTypeDescription
edges *arrayDirected, weighted trust edges as `[from_index, to_index, weight]`. An edge i→j with weight w means node i confers w trust on node j. Weights need not be normalized.
nodes *integerNumber of nodes in the directed trust graph, 1..100000. Node indices in `edges` must be in [0, nodes).
scores *arrayThe `scores` array from a get_reputation_scores result, to be re-derived and confirmed.
dampingnumberPageRank damping factor in [0,1] (default 0.85). Lower = more weight on the uniform prior, dampening graph manipulation.
graph_commitmentstringOptional `graph_commitment` (0x… SHA-256) from the result, to bind the check to the exact graph. Pass '' to skip.

list_oracle_capabilities

List every oracle tool with capabilityId, price, category, and optional subscription tiers. Call this first to discover what's available and what each call costs before invoking. Returns: JSON with `tools` (flat catalog) and `categories` (group labels). Example: list_oracle_capabilities()