prompt optimize
prompt_optimizeImprove a prompt: a prompt engineer rewrites it with a clear role, task, context, constraints and exact output format, lists what it changed, the ambiguities it found and the variables to fill. Up to about 4,000 tokens in. Costs $0.01 USDC per call (x402).
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": "prompt_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| model | No | ||
| prompt | Yes |