Skip to main content
Glama
Sicks3c

HackerOne MCP Server

by Sicks3c

get_report_with_conversation

Retrieve HackerOne vulnerability reports with complete triage conversations to analyze questions, responses, and resolution processes for learning effective security reporting.

Instructions

Get a report with its full triage conversation. Useful for understanding what questions triage asked, how you responded, and what led to resolution. Great for learning what works.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
report_idYesThe HackerOne report ID

Implementation Reference

  • The handler function for the get_report_with_conversation tool, which calls getReportSummary.
    async ({ report_id }) => {
      try {
        const summary = await getReportSummary(report_id);
        return {
          content: [
            {
              type: "text" as const,
              text: JSON.stringify(summary, null, 2),
            },
          ],
        };
      } catch (err: any) {
        return {
          content: [{ type: "text" as const, text: `Error: ${err.message}` }],
          isError: true,
        };
      }
    }
  • src/index.ts:116-140 (registration)
    Registration of the get_report_with_conversation tool using the MCP server instance.
    server.tool(
      "get_report_with_conversation",
      "Get a report with its full triage conversation. Useful for understanding what questions triage asked, how you responded, and what led to resolution. Great for learning what works.",
      {
        report_id: z.string().describe("The HackerOne report ID"),
      },
      async ({ report_id }) => {
        try {
          const summary = await getReportSummary(report_id);
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(summary, null, 2),
              },
            ],
          };
        } catch (err: any) {
          return {
            content: [{ type: "text" as const, text: `Error: ${err.message}` }],
            isError: true,
          };
        }
      }
    );
  • Implementation of getReportSummary, which fetches and processes the report details and conversation activities.
    export async function getReportSummary(reportId: string) {
      const report = await getReport(reportId);
      const activities = await getReportActivities(reportId);
    
      // Filter to meaningful comments only (no automated, no internal)
      const comments = activities.filter(
        (a: any) =>
          a.message &&
          !a.automated_response &&
          (a.type === "activity-comment" ||
            a.type === "activity-bug-triaged" ||
            a.type === "activity-bug-resolved" ||
            a.type === "activity-bounty-awarded")
      );
    
      return {
        ...report,
        conversation: comments.map((c: any) => ({
          from: c.actor ?? c.actor_type,
          type: c.type.replace("activity-", ""),
          message: c.message,
          date: c.created_at,
        })),
      };
    }
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 of behavioral disclosure. It mentions the tool is 'great for learning what works,' which hints at educational use but doesn't cover critical aspects like authentication requirements, rate limits, error handling, or what 'full triage conversation' entails (e.g., format, pagination). This leaves significant gaps for an agent to understand the tool's behavior.

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 concise and front-loaded, starting with the core purpose. The additional sentences provide context on usefulness without being redundant. However, the phrase 'Great for learning what works' is somewhat vague and could be more precise, slightly reducing efficiency.

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?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., the structure of the conversation data), error conditions, or dependencies. For a tool that presumably fetches detailed report data, this omission makes it harder for an agent to use effectively without additional context.

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?

The input schema has 100% description coverage, with the 'report_id' parameter clearly documented as 'The HackerOne report ID.' The description doesn't add any semantic details beyond this, such as format examples or constraints. With high schema coverage, the baseline score of 3 is appropriate as the schema handles the parameter documentation adequately.

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: 'Get a report with its full triage conversation.' It specifies the resource (report) and the key feature (full triage conversation). However, it doesn't explicitly distinguish this from sibling tools like 'get_report' or 'get_report_activities,' which likely provide different aspects of report data.

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 when to use this tool by stating it's 'useful for understanding what questions triage asked, how you responded, and what led to resolution.' This suggests it should be used when detailed conversational context is needed. However, it doesn't provide explicit alternatives (e.g., when to use 'get_report' instead) or exclusions, leaving some ambiguity compared to siblings.

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