Improve a tested prompt
improve_promptUse this when a finished test has failures and someone wants the prompt to fail less, keep to a format or be more reliable. Rewrites the prompt from the failures and any ratings, then tests the new version on the same cases, checks and models, so the two can be compared. Spends credit. Each call starts a new paid run: to follow it, call get_test, not this again.
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": {
"test_id": "<test_id>"
},
"name": "improve_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_id | Yes | ||
| max_spend_usd | No | Limit for this run. Default 50, or 2 from a chat app, never above the credit left. |