Generate an AI fix for an OptiQra issue
optiqra_ai_fixGenerate a suggested fix for a single issue from an OptiQra report. Send the issue and your AI provider API key to receive a concrete remediation step.
Instructions
Given a single issue from an OptiQra report (as produced by optiqra_analyze), asks an AI provider to generate a suggested fix. Requires an API key for the chosen provider — OptiQra forwards it directly to that provider and never stores it server-side.
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": {
"provider": "<provider>",
"issue": "<issue>"
},
"name": "optiqra_ai_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue | Yes | The issue object (from an optiqra_analyze report) to generate a fix for. | |
| model | No | Optional specific model name to use for that provider. | |
| apiKey | No | API key for the chosen provider. Optional if OPTIQRA_PROVIDER_API_KEY is set in this server's environment. | |
| provider | Yes | AI provider to use for this request. |