Here are some best practices and tips for using the Gerrit MCP server effectively.
The server‘s tools are designed to be called by a language model. You don’t need to remember the exact tool names or parameters. Just state what you want to do in plain English.
Instead of: gerrit.query_changes(query="owner:me status:open")
Prefer: “Show me my open CLs”
Instead of: gerrit.get_change_details(change_id="12345")
Prefer: “What are the details for CL 12345?”
Gerrit repositories can be very busy. The more specific your query, the more relevant the results will be.
user@example.com in the zircon project from the last week”You can ask the model to perform a series of actions.
user@example.com.”src/main.py.”If your gerrit_config.json is configured with multiple hosts, you can specify which one to use in your prompt.
user@google.com.”If you don't specify a host, the default_gerrit_base_url from your configuration will be used.