Skip to main content
Glama
sec-audit-swarm
by mesutgungor

sec_audit_reachability

Check whether dependency packages are actually imported or called by first-party code across Python, JS/TS, and Go to identify reachable dependencies.

Instructions

Check first-party static import and call-site reachability for dependency packages across Python, JS/TS, and Go.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target_dir": "<target_dir>",
      "packages": "<packages>"
    },
    "name": "sec_audit_reachability"
  }
}

Input Schema

NameRequiredDescriptionDefault
packagesYesDependency package names to check
target_dirYesRepository root directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it discloses little. 'Static' hints that the analysis is non-executing, but the description never states that it is read-only, whether it requires an installed/locked dependency set, how long it takes on large repos, or what the result shape is. It also omits the important limitation that dynamic imports, reflection, and non-listed languages are not detected.

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 front-loaded sentence with the scope (first-party static) stated before the supported languages, and no filler. It is efficient, though the brevity comes partly from omitting content an agent would need rather than from tight editing.

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

Completeness2/5

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

There is no output schema and the description says nothing about what a reachability result contains (per-package used/unused verdicts, call sites, unresolved imports) or how ambiguity is reported. For a two-parameter analysis tool whose entire value is the returned verdict, this leaves a material gap.

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 both parameters (packages, target_dir) are already documented in the schema; the description adds no format, path-resolution, or naming-convention detail beyond it. Baseline 3 is appropriate when 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 gives a specific verb ('check') and a precisely scoped resource: first-party static import and call-site reachability for dependency packages, limited to Python, JS/TS, and Go. That is far more informative than a name restatement and separates it from a generic scanner, though it never explicitly contrasts itself with near-neighbors such as sec_audit_coverage_ledger or sec_audit_scan.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., that target_dir must be a resolved repo checkout), and no exclusions or named alternatives. An agent must infer from 'reachability' alone that this answers 'is this declared dependency actually used?' rather than duplicating sec_audit_scan.

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