Skip to main content
Glama

diff_attack_paths

Compare IaC before/after changes to detect new, eliminated, or aggravated attack paths from internet to crown-jewel resources, returning a verdict to gate CI/CD.

Instructions

DIFFERENTIAL attack-path analysis for a change to Infrastructure-as-Code — the CI/CD gate. Give it the IaC BEFORE and AFTER a change (e.g. a pull request's base and head trees, each a map of filename→content) and it builds the full resource graph + runs the internet→crown-jewel reachability search on BOTH states, then reports exactly what the change did to your attack surface: which breach chains it INTRODUCES (e.g. 'this PR opens a NEW Internet→admin route via a newly-public security group + an over-broad IAM grant'), which it ELIMINATES, and which it AGGRAVATES (makes more exploitable). Returns an INTRODUCES_BREACH / REDUCES_RISK / NEUTRAL / MIXED verdict — the single check to wire into PR review so a change that opens a path to your data/secrets/admin is caught before merge. This is something a per-file linter or a single-state scan cannot answer: it needs both graphs and a semantic cross-state path match. Heuristic static analysis of declared IaC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deepNoWhen true, runs the PREMIUM deep diff: the full changed chains with per-hop file:line evidence, before→after exploitability scores, and which choke points newly matter. Requires CLOUD_PATHFINDER_KEY; without one you get unlock instructions. The free diff verdict + counts need no key.
afterYesThe IaC state AFTER the change (the PR head). Same shape as `before`.
beforeYesThe IaC state BEFORE the change (the PR base). Provide { files: {filename: content} } or { source, filename }.
Behavior4/5

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

With no annotations, the description carries the burden of behavior disclosure. It accurately describes what the tool does (builds resource graphs, runs reachability searches, reports changes) and includes important limitations like 'Heuristic static analysis of declared IaC.' It also transparently explains the deep parameter's requirement for a CLOUD_PATHFINDER_KEY and the free tier behavior. It does not explicitly state it has no side effects, but as an analysis tool this is well implied.

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

Conciseness5/5

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

The description is a single well-structured paragraph that leads with the core purpose, then explains the input shape, process, output verdict, and use case. While it is relatively long, every sentence adds valuable information for a complex tool. It is front-loaded with the key differentiator ('DIFFERENTIAL') and remains focused, earning a 5.

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

Completeness5/5

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

Given the tool's complexity, the absence of an output schema, and no annotations, the description is impressively complete. It covers inputs (before/after IaC), the analytical process (graph building, reachability search), outputs (introduces/eliminates/aggravates, verdict types, deep-mode evidence), and usage context (PR gate). It also notes the heuristic nature and key requirements, leaving few gaps.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaningful context beyond the schema: it explains 'before' and 'after' as PR base and head trees with filename→content mapping, and clarifies the deep parameter's premium behavior (requires key, free version still yields verdict and counts). This enhances the schema's brief descriptions, justifying a 4.

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 clearly states the tool performs 'DIFFERENTIAL attack-path analysis for a change to Infrastructure-as-Code' with a specific goal: reporting introduced, eliminated, and aggravated breach chains. It is specific about the verb, resource, and output verdict. However, it does not explicitly differentiate from the sibling tool 'audit_iac_attack_paths', so it misses the explicit sibling distinction that would warrant a 5.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool: 'the CI/CD gate', 'PR review', and explicitly contrasts it with 'a per-file linter or a single-state scan'. It states that this tool is needed for changes because it requires both graphs and semantic cross-state path matching. However, it does not mention when not to use it or compare directly with the sibling tool, so it lacks explicit exclusions/alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Baneado98/cloud-pathfinder'

If you have feedback or need assistance with the MCP directory API, please join our Discord server