Skip to main content
Glama
Sicks3c

HackerOne MCP Server

by Sicks3c

get_report

Retrieve detailed HackerOne vulnerability reports by ID to analyze findings, assess severity, and review program information for security assessment.

Instructions

Get the full details of a specific HackerOne report by ID. Returns title, vulnerability details, impact, severity, CVSS, timestamps, and program info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
report_idYesThe HackerOne report ID

Implementation Reference

  • The actual implementation of the getReport function that fetches and processes the report data.
    export async function getReport(reportId: string) {
      const data = await h1Fetch(`/hackers/reports/${reportId}`);
      const r = data.data;
      const attrs = r.attributes;
      const sev = r.relationships?.severity?.data?.attributes;
    
      return {
        id: r.id,
        title: attrs.title,
        state: attrs.state,
        created_at: attrs.created_at,
        closed_at: attrs.closed_at,
        triaged_at: attrs.triaged_at,
        bounty_awarded_at: attrs.bounty_awarded_at,
        disclosed_at: attrs.disclosed_at,
        severity: sev?.rating ?? null,
        vulnerability_information: attrs.vulnerability_information,
        weakness: r.relationships?.weakness?.data?.attributes?.name ?? null,
        program:
          r.relationships?.program?.data?.attributes?.handle ?? null,
        structured_scope:
          r.relationships?.structured_scope?.data?.attributes?.asset_identifier ??
          null,
      };
    }
  • src/index.ts:88-113 (registration)
    The MCP tool registration for 'get_report', which invokes the getReport function.
    // ── Tool: get_report ───────────────────────────────────────────────
    server.tool(
      "get_report",
      "Get the full details of a specific HackerOne report by ID. Returns title, vulnerability details, impact, severity, CVSS, timestamps, and program info.",
      {
        report_id: z.string().describe("The HackerOne report ID"),
      },
      async ({ report_id }) => {
        try {
          const report = await getReport(report_id);
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(report, null, 2),
              },
            ],
          };
        } catch (err: any) {
          return {
            content: [{ type: "text" as const, text: `Error: ${err.message}` }],
            isError: true,
          };
        }
      }
    );
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states it 'Returns title, vulnerability details, impact, severity, CVSS, timestamps, and program info,' which gives some behavioral context about the return format. However, it lacks details on permissions, rate limits, error handling, or whether it's a read-only operation, which is a significant gap for a tool with no annotation coverage.

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, efficient sentence that front-loads the purpose and lists return details concisely. Every part earns its place with no wasted words, making it easy to scan and understand quickly.

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 no annotations and no output schema, the description provides basic purpose and return details, which is adequate for a simple read operation. However, it lacks information on behavioral aspects like error cases or authentication needs, making it incomplete for full contextual understanding despite the tool's low complexity.

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 the parameter 'report_id' clearly documented as 'The HackerOne report ID.' The description adds no additional meaning beyond this, such as format examples or constraints, so it meets the baseline of 3 where the schema does the heavy lifting.

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 clearly states the verb ('Get') and resource ('full details of a specific HackerOne report by ID'), specifying it returns title, vulnerability details, impact, severity, CVSS, timestamps, and program info. It distinguishes from siblings like get_report_activities or get_report_with_conversation by focusing on core report details rather than activities or conversations.

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 implies usage when needing full report details by ID, but does not explicitly state when to use this tool versus alternatives like get_report_with_conversation or search_reports. No exclusions or prerequisites are mentioned, leaving usage context somewhat vague.

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