Set Review Preferences
set_review_preferencesSet or update AI code-review preferences. Controls which categories the reviewer checks (security, performance, test_coverage, type_safety, accessibility, style, secrets_scanning, ai_safety_for_agents) and an optional custom_focus string. Use scope='global' for defaults that apply everywhere, or scope='repo' with a repository_id for per-repo overrides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Whether to set global defaults or a per-repo override. | |
| context | No | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| preferences | Yes | Key-value map of review categories. Boolean categories: security, secrets_scanning, performance, test_coverage, type_safety, accessibility, style, ai_safety_for_agents. Plus optional custom_focus (string or null). | |
| repository_id | No | Required when scope is 'repo'. |