disable_autopilot
Turn off autopilot. Already-accepted optimizations stay active; only future runs are paused. Use enable_autopilot to turn it back on.
Benchmark your AI features against cheaper models, accept or dismiss the switch suggestions, and let autopilot apply them — with a 24-hour window to revert anything it did.
LABSCO SUMMARY
Letting a service change which model serves your production features is a large amount of trust, and the thing that earns it is a bounded, reversible window rather than a promise. Listing what is currently inside that window, with a revert per optimisation, means the exposure is visible at any moment. The detail about disabling autopilot leaving prior changes in place is exactly the kind of thing that is normally learned the hard way, and stating it in the tool text is right. seed_samples deserves mention too: benchmarking a low-traffic flow is otherwise impossible, and being able to supply the cases removes the chicken-and-egg.
An LLM cost and quality optimisation service that watches your AI flows through a proxy, benchmarks them against alternative models, and can apply improvements automatically within a revert window.
LLMTEST_API_KEY, and your AI calls routed through the proxy so there is activity to observe.
One command plus a key — npx llmtest-mcp, then supply credentials
USE CASES
List the flows with their current models and call volumes — the inventory most teams have never assembled.
Benchmark the flow against alternatives with a chosen optimisation target, seeding test samples if the flow has too little real traffic.
Read the pending suggestions and accept or dismiss each by id, rather than taking them wholesale.
Have the flow's prompt analysed and an optimised version generated.
Check the prerequisites, enable autopilot, and keep an eye on what is inside the 24-hour window — with a revert per optimisation while it lasts.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
disable_autopilotTurn off autopilot. Already-accepted optimizations stay active; only future runs are paused. Use enable_autopilot to turn it back on.
enable_autopilotTurn on autopilot. Once enabled, LLMTest will automatically optimize eligible flows every 7 days, auto-accept changes that pass all safety gates, and auto-revert if drift detection later sees regressions.
Cost: each optimization run costs ~$1-2, billed to LLMTest credits. Runs are skipped silently if the account has no credits.
Prerequisites: verified email, account age >= 14 days, and >=20 real calls per flow. Use get_autopilot_status to check readiness.
get_accountCheck your credit balance and usage stats.
get_autopilot_statusShow whether autopilot is enabled and whether the account meets the prerequisites.
Autopilot automatically optimizes prompts and models for eligible flows every 7 days. Checks: optimization scheduler (weekly), drift detection (daily scan, per-optimization weekly).
Prerequisites for a flow to be auto-optimized:
Safety gates (all must pass to auto-accept): 95% CI lower bound > 50%, multi-judge agreement >= 80%, >=20% total savings, no length-bias warning, golden-set regression check. After auto-accept: 24h revert window. Drift detection reverts automatically if quality degrades later.
get_suggestionsGet pending recommendations to switch to a cheaper or faster model without losing quality.
leave_feedbackAfter using any tool in this MCP server, you may call this to share your experience as an AI agent. This helps improve the tool. This is YOUR assessment as an agent, not the user's.
list_active_optimizationsList auto-accepted optimizations still within their 24h revert window. Each includes the flow, strategy, savings, and hours remaining to revert.
list_flowsShow all AI features in this project with their current model, call volume, latency, and cost.
list_new_modelsShow new and trending models that are worth benchmarking soon.
list_samplesShow how many test samples are stored for each flow.
optimize_promptAnalyze a flow's prompt and automatically generate an optimized version.
Tests optimized prompt against baseline using real samples and a multi-judge AI (Claude Sonnet + GPT-4o, position-swapped, self-consistency). Also tests cheaper models.
REQUIRES: at least 3 samples on the flow. If the flow has none (zero traffic), BEFORE calling this tool you should: (1) ask the user to describe the feature, (2) find or ask for their system prompt, (3) generate 5-10 realistic synthetic user inputs, (4) call seed_samples with [{role:'system', content:<prompt>}, {role:'user', content:<synthetic input>}] for each, (5) THEN call optimize_prompt. Tell the user synthetic-sample results are "indicative" vs real-traffic results.
Confidence levels: HIGH (safe to accept), MEDIUM (review first), LOW (need more traffic), NEGATIVE (do not accept).
Cost: ~$1-2 per run, billed to the user's LLMTest credits.
revert_optimizationRevert an auto-accepted optimization. Only works within the 24h revert window. Restores the previous active prompt. Use list_active_optimizations to find IDs.
run_benchmarkBenchmark a flow against alternative models. Use optimize_for to focus the search: "cost" tests cheaper models, "quality" tests potentially better models, "speed" tests faster models, "balanced" (default) tests a diverse spread.
Use challengers to test specific models (e.g. ["anthropic/claude-sonnet-4", "google/gemini-2.5-flash-preview"]). If omitted, challengers are selected automatically based on optimize_for.
For pre-launch projects with no real traffic: seed samples first with seed_samples, then call this with currentModel set to the model you are currently using (or planning to use).
For post-launch projects: currentModel is detected automatically from call history.
seed_samplesRegister test samples for a flow so it can be benchmarked without real traffic. Use this for pre-launch projects or when you want to benchmark a specific scenario.
Each sample must be an array of messages in OpenAI chat format: [{ "role": "system", "content": "..." }, { "role": "user", "content": "..." }]
To use: read the codebase to find the prompt for this flow, then generate 5-10 realistic and varied user inputs that represent what real users would send. Max 10 samples per call.
statusShow LLMTest proxy status and a summary of monitored AI activity.
update_suggestionAccept or dismiss a model-switch suggestion by ID.
BEFORE YOU INSTALL
16 tools when we connected. leave_feedback is undocumented. The five autopilot tools need a verified email, a 14-day-old account, a flow with 20+ recent calls and credits; enable_autopilot and optimize_prompt rewrite production prompts.
All 3 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 16 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx llmtest-mcpclaude mcp add llmtest -- npx llmtest-mcp{
"mcpServers": {
"llmtest": {
"command": "npx",
"args": [
"llmtest-mcp"
],
"env": {
"LLMTEST_API_KEY": "<YOUR_LLMTEST_API_KEY>"
}
}
}
}