> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracelm.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit Task Feedback

> Submit necessary/unnecessary/unclear feedback for a tool call in a task

## Request Body

* `tool_call_id` (UUID, required)
* `feedback_type` (required: `necessary | unnecessary | unclear`)
* `comment` (optional)

## Behavior

* If the same user already submitted feedback for this tool call, the record is updated.
* Aggregated unnecessary-tool patterns are recomputed for that tool.

## Response

Returns feedback row with `id`, `task_id`, `user_id`, `tool_call_id`, `feedback_type`, `comment`, `created_at`.
