Skip to main content
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.
For generic tool feedback, omit the solution_id and include the tool name:

Parameters

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.
boolean
required
true for positive feedback. false for negative feedback.
string
Optional context about what worked or did not work. Strongly recommended when solution_id is omitted.
string
Optional name of the GitHits tool or CLI command that produced the result being rated, such as get_example, search, or code_grep.

MCP tool reference