Quality & code review
Quality & code review
Section titled “Quality & code review”This page is generated from the live QualityMax MCP registry. Examples use placeholders; replace them with values for your workspace.
ai_review
Section titled “ai_review”Purpose
Section titled “Purpose”Start an AI-powered code review and suggest improvements. Worker-backed deployments return a job_id immediately; poll check_ai_review_status until the review completes.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
repo_id |
string |
Yes | Repository ID to review |
focus_areas |
array |
No | Areas to focus review on |
model |
string |
No | Model to use for review (default: gpt-5.6-terra) |
max_tokens |
integer |
No | Max tokens for the review output (default: 4000) |
debug |
boolean |
No | Include debug metadata (default: false) |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "repo_id": "your-repo-id" }, "tool": "ai_review"}analyze_coverage
Section titled “analyze_coverage”Purpose
Section titled “Purpose”Analyze test coverage and identify gaps in the repository
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
repo_id |
string |
Yes | Repository ID to analyze |
include_suggestions |
boolean |
No | Include improvement suggestions |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "repo_id": "your-repo-id" }, "tool": "analyze_coverage"}get_dependency_scan
Section titled “get_dependency_scan”Purpose
Section titled “Purpose”Read your dependency scan status and a page of findings. Free Beta Plus or Studio+ required; reports expire after 24 hours. Poll queued/running scans no more often than every two seconds. For completed scans follow next_offset until null to read every finding. Failed scans have no security verdict.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
scan_id |
string |
Yes | ID returned by start_dependency_scan. |
offset |
integer |
No | Finding offset from next_offset. |
limit |
integer |
No | Maximum findings per page. |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "scan_id": "your-scan-id" }, "tool": "get_dependency_scan"}get_review_preferences
Section titled “get_review_preferences”Purpose
Section titled “Purpose”Get the user’s AI code-review preferences (which categories to check, which to skip). Returns effective preferences: per-repo overrides merged over global defaults. Call without repository_id for global defaults.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
repository_id |
integer |
No | Repository ID. Omit to get global defaults only. |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": {}, "tool": "get_review_preferences"}query_data
Section titled “query_data”Purpose
Section titled “Purpose”Query data from the system using flexible queries. Use this for exploratory queries or when you need to list data with filters. For specific single-item lookups, prefer specialized tools like get_test_case, get_execution, etc.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
query_type |
string |
Yes | Type of data to query: projects (all user projects), test_cases (requires project_id), repositories (requires project_id), executions (requires project_id), scripts (requires project_id) |
project_id |
integer |
No | Project ID to query within (required for test_cases, repositories, executions, scripts) |
filters |
object |
No | Filter criteria - supported filters vary by query_type: status, category, name_contains, created_after, created_before |
limit |
integer |
No | Maximum number of results to return |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "query_type": "your-query-type" }, "tool": "query_data"}repo_coverage
Section titled “repo_coverage”Purpose
Section titled “Purpose”Get the imported repository’s stored coverage signal without starting a new scan.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
repo_id |
integer |
Yes | Repository ID |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "repo_id": 1 }, "tool": "repo_coverage"}repo_quality
Section titled “repo_quality”Purpose
Section titled “Purpose”Get the imported repository’s stored quality signal without starting a new scan.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
repo_id |
integer |
Yes | Repository ID |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "repo_id": 1 }, "tool": "repo_quality"}set_review_preferences
Section titled “set_review_preferences”Purpose
Section titled “Purpose”Set 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.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
scope |
string |
Yes | Whether to set global defaults or a per-repo override. |
repository_id |
integer |
No | Required when scope is ‘repo’. |
preferences |
object |
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). |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "preferences": {}, "scope": "your-scope" }, "tool": "set_review_preferences"}start_dependency_scan
Section titled “start_dependency_scan”Purpose
Section titled “Purpose”Queue an OSV dependency/CVE scan of a UTF-8 lockfile for Free Beta Plus or Studio and above. Pass file contents, not a local path or URL. Lockfiles run in isolated E2B sandboxes. Package names and versions are sent to public OSV; do not include secrets. Returns a scan id; poll get_dependency_scan. One active scan and ten MCP submissions per hour per user. Checks known dependency advisories, not application code or exploitability.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
filename |
string |
Yes | Original lockfile basename. |
content |
string |
Yes | UTF-8 lockfile text, up to 2 MiB. |
Return shape
Section titled “Return shape”The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.
Worked example
Section titled “Worked example”{ "arguments": { "content": "your-content", "filename": "your-filename" }, "tool": "start_dependency_scan"}