optimize_solution
Analyze problem description and suboptimal code to refactor solutions, reducing runtime complexity and improving performance.
Instructions
Refactor solutions to reduce runtime complexity and improve performance.
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": {
"problem": "<problem>",
"code": "<code>"
},
"name": "optimize_solution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The suboptimal source code. | |
| problem | Yes | The full text of the problem description. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||