Compare models on a prompt
compare_modelsUse this when someone has a prompt (pasted, or one their app sends) and wants models compared on it in one step: which does it best, what each costs per 1,000 answers and how quick each is. Runs it on realistic cases across about four current models from different labs and price tiers, or the models they name, and checks every answer. Do not use for general questions about models with no prompt to test, or to follow a test already started (that is get_test). For checks, shared context or more control, use test_prompt. Spends credit, never more than max_spend_usd by estimate (default 2 dollars). Waits up to about 25 seconds; if the test isn't done by then it returns the test_id and progress, and get_test follows it from there. Each call starts another paid test, so don't call it again to follow one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "compare_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No | Optional, up to 50: names as the person said them (gpt, claude, gemini, sonnet) or IDs from list_models, each matched to the newest model of its family. Default: about four current models from the starting mix, from dearest to cheapest. | |
| prompt | Yes | The prompt as it is used, pasted whole. The part that changes from one use to the next is found and varied; it can also be marked as {{snake_case}} variables. | |
| examples | No | Optional, up to 50: real examples of what goes into the prompt, as plain text (a customer email, a product). They become the first cases, and realistic ones are drafted to fill the rest. | |
| max_spend_usd | No | The most this test may spend, in dollars. Default 2, never above the credit left. Models are left out, dearest first, to fit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| more | No | ||
| name | No | ||
| next | No | ||
| pick | No | ||
| unit | No | ||
| error | No | ||
| voice | No | With writing samples: how each version's answers compare with the person's own writing. A style check, not an AI detector. | |
| detail | No | ||
| models | No | ||
| status | Yes | ||
| started | No | What this call started. | |
| summary | Yes | One or two plain sentences to lead with. | |
| test_id | Yes | ||
| verdict | No | ||
| version | No | ||
| failures | No | ||
| progress | No | ||
| spent_usd | No | ||
| comparison | No | Ready to show as a table: columns, then one row per model, best first. | |
| most_passed | No | ||
| cheaper_setup | No |