Skip to main content
Glama

analyze_vulnerability_usage

Assess whether vulnerable components are actually used by searching imports and usages, grouping hits by architectural layer, and flagging externally reachable code to estimate real exploitability.

Instructions

Assess whether vulnerable components are actually used in a project. For each component, search imports/usages (FQCN or artifact keywords), group hits by architectural layer (controller/service/test/...), and flag externally-reachable usages to help estimate real exploitability. Layers are resolved from file paths AND file contents: any file declaring @RestController/@Controller/@RequestMapping/@GetMapping/@PostMapping/@PutMapping/@DeleteMapping is treated as a controller ([HIGH]) even when its path has no web/controller token. project_root must be an absolute path to the target project.

Input Schema

NameRequiredDescriptionDefault
componentsYes
max_matchesNo
project_rootNo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the internal procedure (search imports/usages using FQCN or artifact keywords, group by layer, flag externally reachable hits), the layer-resolution heuristic including annotation-based controller detection marked [HIGH], and the absolute-path requirement. It stops short of stating read-only safety, performance characteristics, or the shape of the returned grouping.

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?

Front-loaded with the purpose, then the per-component procedure, then the layer heuristic caveat. Dense but every sentence carries information; the detailed @RestController/@Controller/@GetMapping enumeration is the only part that runs long relative to its value.

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

Completeness4/5

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

No output schema exists, and the description compensates by explaining that results are grouped by layer and flagged for external reachability with [HIGH] markers, giving an agent a usable mental model of the return value. The unmentioned max_matches cap and the lack of any hint about result volume are the remaining gaps.

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 0% across 3 parameters, so the description must compensate. It clarifies 'components' (FQCN or artifact keywords) and imposes an absolute-path constraint on project_root, but max_matches (default 800) is never mentioned, leaving one parameter entirely undocumented.

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

Purpose5/5

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

States a specific verb+resource: assesses whether vulnerable components are actually used, by searching imports/usages and grouping hits by architectural layer. The scope is narrow enough that an agent can distinguish it from generic siblings like search_multi_patterns without opening a schema.

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?

The purpose sentence implies when to use it (exploitability triage of known-vulnerable components), but there is no explicit when-not guidance and no mention of the sibling alternatives such as search_multi_patterns for raw pattern hunting. Usage must be inferred from context rather than stated.

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