optimize_prompt
Analyze workflow step failures and generate optimized prompt variants from inference logs. Returns up to 5 ranked suggestions for better prompts.
Instructions
Analyze recent failures and generate optimized prompt variants for a workflow step.
Uses LLM-powered analysis of inference logs to suggest better prompts. Returns up to 5 variants ranked by estimated improvement.
Args: workflow_id: UUID of the workflow step_id: UUID of the step to optimize
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": {
"workflow_id": "<workflow_id>",
"step_id": "<step_id>"
},
"name": "optimize_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| step_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |