Skip to main content
Glama
Sicks3c

HackerOne MCP Server

by Sicks3c

analyze_report_patterns

Analyze vulnerability report patterns to identify common types, severity distribution, and resolution rates for improving security testing strategies.

Instructions

Fetch your recent reports and analyze patterns: most common vulnerability types, severity distribution, resolution rates, and programs. Useful for understanding your hunting profile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_sizeNoNumber of reports to analyze (default 100)

Implementation Reference

  • The handler for the analyze_report_patterns tool, which fetches reports, performs aggregation of severity, state, program, and weakness data, and returns the analysis.
    server.tool(
      "analyze_report_patterns",
      "Fetch your recent reports and analyze patterns: most common vulnerability types, severity distribution, resolution rates, and programs. Useful for understanding your hunting profile.",
      {
        page_size: z
          .number()
          .min(10)
          .max(100)
          .optional()
          .describe("Number of reports to analyze (default 100)"),
      },
      async ({ page_size }) => {
        try {
          const reports = await searchReports({
            page_size: page_size ?? 100,
            sort: "-reports.created_at",
          });
    
          const severityCounts: Record<string, number> = {};
          const stateCounts: Record<string, number> = {};
          const programCounts: Record<string, number> = {};
          const weaknessCounts: Record<string, number> = {};
    
          for (const r of reports) {
            severityCounts[r.severity ?? "unknown"] =
              (severityCounts[r.severity ?? "unknown"] ?? 0) + 1;
            stateCounts[r.state ?? "unknown"] =
              (stateCounts[r.state ?? "unknown"] ?? 0) + 1;
            if (r.program)
              programCounts[r.program] = (programCounts[r.program] ?? 0) + 1;
            if (r.weakness)
              weaknessCounts[r.weakness] = (weaknessCounts[r.weakness] ?? 0) + 1;
          }
    
          const analysis = {
            total_reports_analyzed: reports.length,
            severity_distribution: severityCounts,
            state_distribution: stateCounts,
            top_programs: Object.entries(programCounts)
              .sort(([, a], [, b]) => b - a)
              .slice(0, 10)
              .map(([prog, count]) => ({ program: prog, count })),
            top_weakness_types: Object.entries(weaknessCounts)
              .sort(([, a], [, b]) => b - a)
              .slice(0, 10)
              .map(([weakness, count]) => ({ weakness, count })),
          };
    
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(analysis, null, 2),
              },
            ],
          };
        } catch (err: any) {
          return {
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions fetching and analyzing reports but doesn't specify whether this is a read-only operation, what permissions are required, whether it's computationally intensive, or what format the analysis results take. For a pattern analysis tool with zero annotation coverage, this leaves significant behavioral questions unanswered.

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?

The description is appropriately concise with two sentences that efficiently communicate purpose and utility. The first sentence clearly states the action and analysis targets, while the second explains the value. There's no wasted verbiage, though it could be slightly more structured with explicit separation of fetch vs analyze phases.

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?

Given a single parameter with full schema coverage but no annotations and no output schema, the description provides adequate purpose context but lacks behavioral and output information. For a pattern analysis tool that presumably returns structured insights, the absence of output schema means the description should ideally hint at return format, but it doesn't. The description is minimally complete but leaves important contextual 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 100% with only one parameter (page_size) fully documented in the schema. The description doesn't mention any parameters or add semantic context beyond what the schema provides. Since the schema does the heavy lifting, the baseline score of 3 is appropriate - the description neither compensates for gaps nor adds value beyond the schema.

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's purpose: 'Fetch your recent reports and analyze patterns' with specific analysis targets (vulnerability types, severity distribution, resolution rates, programs). It distinguishes from obvious siblings like 'get_report' (single report) and 'search_reports' (searching rather than analyzing patterns). However, it doesn't explicitly differentiate from all siblings like 'get_report_activities' or 'get_report_with_conversation'.

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 description provides implied usage context: 'Useful for understanding your hunting profile' suggests this is for security researchers analyzing their own report patterns. However, it lacks explicit guidance on when to use this versus alternatives like 'search_reports' for filtering or 'get_program_weaknesses' for program-specific analysis. No clear when-not-to-use guidance or prerequisites are mentioned.

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/Sicks3c/hackerone-mcp-server'

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