Skip to main content
Glama

Blast-Radius & Merge-Tree Conflict Advisor

analyze_blast_radius

Assess a commit's blast radius across sensitive paths like auth, migrations, CI/CD, API contracts, and config, then run a read-only merge-tree dry-run to check conflicts with the target branch.

Instructions

Analyze commit blast radius across sensitive paths (auth, migrations, CI/CD, API contracts, config) and execute a strictly read-only git merge-tree --write-tree dry-run conflict check against the target branch.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_blast_radius"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOptional synthetic file metrics for in-memory blast-radius scoring.
repoPathNoGit repository path. Defaults to current working directory.
sourceRefNoSource Git ref for dry-run merge (default: HEAD).
targetBranchNoTarget branch for merge-tree conflict check (auto-detects origin/main or main if omitted).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full disclosure burden and does deliver the most important trait: 'strictly read-only' and 'dry-run,' which tells an agent the check is non-mutating. It does not disclose what the analysis returns (risk tiers? a path-by-path list?), whether merge-tree writes objects to the repository despite the read-only framing, or what happens when no conflicts exist. Those are material gaps for a tool whose name includes 'analyze.'

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the two capabilities front-loaded and no filler. It is jargon-heavy (merge-tree --write-tree) but that verbosity buys precision rather than padding. Slight cost: cramming two distinct operations into one clause makes it harder to parse at a glance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a compound tool with no annotations and no output schema, the definition explains inputs well but says nothing about results, which an agent needs for a two-function analyzer. The sensitive-path list partially compensates by previewing what gets checked. Given zero annotation and zero output-schema coverage, more disclosure was warranted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters (files, repoPath, sourceRef, targetBranch) are already documented, including default and auto-detection behavior. The description adds only that targetBranch is the conflict-check target, which the schema already states. Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names two concrete operations: blast-radius scoring of a commit across enumerated sensitive paths (auth, migrations, CI/CD, API contracts, config), and a merge-tree conflict dry-run against a target branch. Verb and resource are specific enough for an agent to know what happens. It stops short of naming a sibling, so differentiation from scan_precommit_guard or diff_structural_json is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the sensitive-path enumeration and the target-branch dry-run signal a pre-merge risk review. There is no explicit when-to-use, when-not-to-use, or named alternative for the overlapping conflict-scanning siblings. An agent can infer the scenario but gets no routing rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.