feedback
Saves a 1-5 rating and notes for any robot's analysis output, persisting the analysis text atomically. Use it after showing results to record feedback that improves future runs.
Instructions
Save user feedback for a robot's analysis output. Call this after showing the user each robot's results and asking them to rate it.
REQUIRED: You MUST provide either 'analysisMarkdown' or 'bypassReason' — never neither.
analysisMarkdown — the full analysis text Claude generated for this robot. Providing it here persists it atomically alongside the rating so Phase 2 robots can read Phase 1 outputs. This is the normal path for every human-in-the-loop run.
bypassReason — escape hatch for headless / programmatic callers that have already persisted the output via 'save-robot-output'. Describe why the text is not being passed here. Example: "output already saved via save-robot-output before feedback was available".
Feedback ratings: 4-5 → recorded as successful patterns (learning engine improves future runs) 1-3 → recorded as areas to improve
If the session is tied to a product, the rating is also appended to the robot's asset file on disk.
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": {
"analysisId": "<analysisId>",
"robotName": "<robotName>",
"rating": "<rating>"
},
"name": "feedback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Improvement suggestions or comments, e.g. 'Add specific TAM numbers' | |
| rating | Yes | User rating 1-5 (1=poor, 5=excellent) | |
| robotName | Yes | Which robot to rate | |
| analysisId | Yes | The analysis session ID | |
| bypassReason | No | Escape hatch — explain why analysisMarkdown is not provided (e.g. 'saved via save-robot-output'). Required if analysisMarkdown is absent. | |
| analysisMarkdown | No | The full analysis text Claude generated for this robot. Pass this to persist the output atomically with the rating. Required unless bypassReason is set. |