create_feedback
Create a new feedback record linked to a trace or request by trace_id, returning the created feedback IDs and status; use update for corrections.
Instructions
Create feedback for a trace or request. Writes a new feedback record linked by trace_id, returns the created feedback IDs and status, and takes effect immediately; use update_feedback when correcting an existing record.
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": {
"trace_id": "<trace_id>",
"value": "<value>"
},
"name": "create_feedback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Feedback value/rating. Common patterns: 1 for positive (thumbs up), 0 for negative (thumbs down), or use a scale like 1-5. | |
| weight | No | Optional weighting factor for the feedback. Use to give more importance to certain feedback. | |
| metadata | No | Optional custom metadata for categorization and analysis (e.g., feedback_source, category, user_segment). | |
| trace_id | Yes | The trace ID to associate the feedback with. This links feedback to a specific request/generation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |