ai_fix_request
Sends an API request and, when it returns a 4xx/5xx error, uses AI to diagnose the failure and suggest fixes such as missing headers, bad auth, or incorrect body shape.
Instructions
Send a request, and if it fails (4xx/5xx), use AI to diagnose what's wrong and suggest fixes — missing headers, bad auth, wrong body shape, etc.
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": {
"request_id": "<request_id>"
},
"name": "ai_fix_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Set to true to confirm sending to an external URL after reviewing it | |
| request_id | Yes | ||
| environment_id | No |