Skip to main content
Glama

generate_report

Idempotent

Generate a polished HTML security report from vulnerability scan results, including executive summary, vulnerability table, risk gauge, and actionable recommendations.

Instructions

Generate a polished HTML security report from scan results.

Accepts aggregated results from check_package and
analyze_reachability, and produces a self-contained HTML
report with executive summary, sortable vulnerability table,
risk gauge, and actionable recommendations.

The report is saved to disk and the path is returned.

Args:
    results: List of PackageReport objects, each combining
        a PackageCheckResult with an optional
        ReachabilityResult.
    project_name: Human-readable project name for the
        report header.
    ecosystem: One of PyPI, npm, Maven, or Gradle.
    output_dir: Directory to save the report into.
        Created if it does not exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsYes
ecosystemNoPyPI
output_dirNo.vulnpilot
project_nameNoProject

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
high_countNo
report_htmlYes
report_pathYes
normal_countNo
urgent_countNo
total_packagesYes
immediate_countNo
vulnerable_packagesYes
total_vulnerabilitiesYes
Behavior4/5

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

Annotations already provide idempotentHint=true and destructiveHint=false. The description adds useful behavioral context: the report is saved to disk, the output directory is created if needed, and the path is returned. This goes beyond the annotations, though it doesn't clarify whether file overwriting occurs (which is relevant for idempotency claims).

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 well-structured and efficient. It opens with a clear purpose statement, follows with a context paragraph, and then lists parameters in an Args block. Every sentence adds value; no redundancy or fluff.

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?

The tool involves file I/O and complex inputs. With an output schema present, return values need not be detailed. The description covers input sources, output characteristics, and parameter behavior. It lacks clarity on file overwrite behavior and error handling, but given the annotations and schema, it is mostly complete.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It does so excellently: for each parameter, it provides a meaningful explanation (e.g., 'List of PackageReport objects', 'Human-readable project name', etc.) that adds semantic richness beyond the bare schema types/enums.

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?

The description states a specific verb ('Generate'), resource ('polished HTML security report'), and scope ('from scan results'). It details report contents (executive summary, vulnerability table, etc.) and distinguishes from sibling tools (check_package, analyze_reachability) which are data collection tools, not report generators.

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 explicitly states it accepts aggregated results from check_package and analyze_reachability, giving clear context on when to use this tool (after those). While it doesn't explicitly say when not to use, the dependency on prerequisites is clear. Alternatives are not applicable as siblings are prerequisites, not competitors.

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/arojit/vulnpilot-mcp'

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