mr_review_context
Review a merge request by identifying impactful symbols and computing their dependency blast radius, with optional related patterns from semantic search.
Instructions
Graph-first review context: dependency impact per changed symbol, plus optional semantic enrichment.
Extracts the top-N most-frequent identifiers from the MR diff, then for each:
Runs dependency_impact(symbol, root) — always, no optional extras needed.
If the repo has been indexed via index_repo(root), enriches each symbol with related_patterns from a hybrid semantic search against the codebase.
The semantic layer is purely additive: a result with semantic_available=false is complete and actionable — dependency impact already covers the blast radius. Use this as a single-call alternative to running dependency_impact separately for each changed symbol.
Args: url: Full GitLab merge request URL. root: Absolute path to the local repository clone. max_symbols: Maximum changed symbols to analyze (default 8).
Returns:
{mr_number, symbols[{symbol, impact, related_patterns?}], symbol_source,
semantic_available, root_status?, warning?, index_status?} or
{"error": "..."}. A "warning" means root isn't checked out to the MR —
set it up with myopic worktree <url> <repo> and re-run against its path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| root | Yes | ||
| max_symbols | No |