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

# Feedback: improve GitHits results

> Submit feedback on specific GitHits results or on a whole tool session so future navigation, documentation, package, and example results improve.

Feedback lets you report whether GitHits results helped. You can anchor feedback to a specific Code Examples result with a `solution_id`, or submit generic session feedback for any GitHits tool.

## How agents use it

Agents can call the `feedback` MCP tool after a result is accepted, rejected, or found to be missing important context. You can also submit feedback directly from the CLI.

```bash theme={null}
npx githits@latest feedback <solution_id> --accept
npx githits@latest feedback <solution_id> --reject --message "Example used an outdated API"
```

For generic tool feedback, omit the `solution_id` and include the tool name:

```bash theme={null}
npx githits@latest feedback --reject --tool code_grep --message "Missed the debounce overload in npm:lodash"
```

## Parameters

<ParamField query="solution_id" type="string">
  The `solution_id` from a prior `get_example` response. Pass it to anchor feedback to that specific result. Omit it for generic session or tool feedback.
</ParamField>

<ParamField query="accepted" type="boolean" required>
  `true` for positive feedback. `false` for negative feedback.
</ParamField>

<ParamField query="feedback_text" type="string">
  Optional context about what worked or did not work. Strongly recommended when `solution_id` is omitted.
</ParamField>

<ParamField query="tool_name" type="string">
  Optional name of the GitHits tool or CLI command that produced the result being rated, such as `get_example`, `search`, or `code_grep`.
</ParamField>

## MCP tool reference

| MCP tool   | CLI command                   | Purpose                                                        |
| ---------- | ----------------------------- | -------------------------------------------------------------- |
| `feedback` | `npx githits@latest feedback` | Submit thumbs up or thumbs down for a result, tool, or session |
