Ai Model Experiments

v0.2.1
io.github.pipeworx-io/ai-model-experiments Checked 2 days ago Published 1 month ago

AI Model Experiments MCP ('Model Lab') — run the same prompts across many AI models simultaneously…

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

experiment_models

List AI models available for experiments (about 300 across Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, Qwen and more), with context window and OUR per-token prices (provider cost × 1.5 — what experiments actually bill). Filter by name/vendor search, minimum context, or max price. Use the returned model ids in experiment_create. Example: experiment_models({ search: "claude", min_context: 100000 })

ParameterTypeDescription
limitnumberMax models to return (default 30)
max_price_per_mtoknumberMax billed OUTPUT price in USD per million tokens
min_contextnumberMinimum context window in tokens
searchstringSubstring match on model id or name, e.g. "claude", "gpt", "llama"

experiment_estimate

Dry-run cost estimate for an experiment BEFORE creating it — cell count and estimated billed cost range (at our 1.5× pricing) for prompts × models × reps. Free to call, no side effects, does not need credit balance. Same spec shape as experiment_create. Example: experiment_estimate({ prompts: ["Summarize: ..."], models: ["anthropic/claude-sonnet-4.5", "openai/gpt-5"], reps: 2 })

ParameterTypeDescription
models *arrayModel ids from experiment_models (max 12)
prompts *arrayPrompts to test (max 20)
paramsobjectOptional {system, temperature, max_tokens}
repsnumberRepetitions per prompt×model, 1-5 (default 1)
summarybooleanInclude the AI-written comparison summary stage (default true)

experiment_create

Model Lab: run one prompt across many AI models at once and compare their outputs, cost, and latency side by side. Create and start an experiment: run each prompt against each model (× reps), collecting output, tokens, latency, and billed cost per cell. PREPAID: requires Pipeworx credit balance ≥ max_spend_usd (top up via experiment_topup); bills actual provider cost × 1.5 with a $0.10 minimum per experiment. ASYNC: returns experiment_id immediately — execution starts within ~1 minute; poll experiment_status until complete, then call experiment_results. Do NOT wait synchronously. Set sum…

ParameterTypeDescription
max_spend_usd *numberREQUIRED hard spend cap in USD for this experiment (max 100). Execution stops when reached.
models *arrayModel ids from experiment_models (max 12)
prompts *arrayPrompts to test (max 20)
namestringShort experiment name
paramsobjectOptional {system, temperature, max_tokens (default 512)}
repsnumberRepetitions per prompt×model for variance, 1-5 (default 1)
summarybooleanAI-written comparison of the models' outputs when the run completes (default true)

experiment_status

Progress of an experiment: cell counts by state (pending/running/ok/error/skipped), spend so far vs cap, and whether it is complete. Poll this after experiment_create (every few seconds). Example: experiment_status({ experiment_id: "..." })

ParameterTypeDescription
experiment_id *stringFrom experiment_create

experiment_results

Results of an experiment: per-model aggregates (mean latency, tokens, total billed cost, error rate), per-cell outputs, and the AI-written summary comparing how the models differed (if enabled). Use include_outputs:false for aggregates only. Example: experiment_results({ experiment_id: "..." })

ParameterTypeDescription
experiment_id *stringFrom experiment_create
include_outputsbooleanInclude full model outputs per cell (default true)

experiment_list

List your experiments, newest first, with status and spend. Example: experiment_list({ limit: 10 })

ParameterTypeDescription
limitnumberMax experiments (default 20)

experiment_cancel

Cancel a running experiment: pending cells are skipped (not billed); in-flight cells finish and bill. Example: experiment_cancel({ experiment_id: "..." })

ParameterTypeDescription
experiment_id *stringFrom experiment_create

experiment_topup

How to add prepaid credits for experiments (and your current balance). Payment is x402 — USDC on Base, paid in-band by any wallet-equipped agent: POST https://gateway.pipeworx.io/credits/topup?amount_usd=10 responds HTTP 402 with payment requirements; retry with PAYMENT-SIGNATURE to settle and the credits land instantly. Example: experiment_topup({})

ParameterTypeDescription
amount_usdnumberIntended top-up amount in USD (1-500) — echoed into the instructions