optimize_prompt
Optimize prompts to reduce token consumption while retaining required bindings and literals, with adjustable quality and reasoning effort.
Instructions
Prepare token optimization while preserving binding requirements and literals.
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": "optimize_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| quality | No | economy | |
| reasoning_effort | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |