Skip to main content
Glama
Sicks3c

HackerOne MCP Server

by Sicks3c

get_report_activities

Retrieve the activity timeline for a HackerOne report, including comments, state changes, bounty awards, and triage responses.

Instructions

Get the activity timeline of a report: comments, state changes, bounty awards, and triage responses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
report_idYesThe HackerOne report ID
page_sizeNoNumber of activities to return (default 50)

Implementation Reference

  • The function `getReportActivities` performs the core logic, fetching and transforming report activity data.
    export async function getReportActivities(
      reportId: string,
      _pageSize = 50
    ) {
      // Activities are included in the report response under relationships
      const data = await h1Fetch(`/hackers/reports/${reportId}`);
      const activities = data.data?.relationships?.activities?.data ?? [];
    
      return activities.map((a: any) => ({
        id: a.id,
        type: a.type,
        message: a.attributes.message,
        created_at: a.attributes.created_at,
        internal: a.attributes.internal,
        automated_response: a.attributes.automated_response,
        actor_type: a.relationships?.actor?.data?.type ?? null,
        actor:
          a.relationships?.actor?.data?.attributes?.username ??
          a.relationships?.actor?.data?.attributes?.name ??
          null,
      }));
    }
  • src/index.ts:142-165 (registration)
    The `get_report_activities` tool is registered using `server.tool` and calls the handler.
    // ── Tool: get_report_activities ────────────────────────────────────
    server.tool(
      "get_report_activities",
      "Get the activity timeline of a report: comments, state changes, bounty awards, and triage responses.",
      {
        report_id: z.string().describe("The HackerOne report ID"),
        page_size: z
          .number()
          .min(1)
          .max(100)
          .optional()
          .describe("Number of activities to return (default 50)"),
      },
      async ({ report_id, page_size }) => {
        try {
          const activities = await getReportActivities(report_id, page_size);
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(activities, null, 2),
              },
            ],
          };
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 describes what the tool retrieves but lacks critical behavioral details: it doesn't mention pagination behavior (despite having a 'page_size' parameter), rate limits, authentication requirements, or error handling. For a read operation with parameters, this leaves significant gaps in understanding how the tool behaves in practice.

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 core purpose ('Get the activity timeline of a report') and follows with specific details. Every word earns its place, with no redundant or vague phrasing, making it highly scannable and informative.

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 the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is adequate but incomplete. It covers the purpose well but lacks behavioral context (e.g., pagination, errors) and output details. Without annotations or an output schema, the agent must rely on the description alone, which leaves gaps in understanding the full tool behavior and results.

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%, so the schema fully documents both parameters ('report_id' and 'page_size') with descriptions and constraints. The description adds no parameter-specific information beyond what the schema provides, such as clarifying the format of 'report_id' or explaining pagination context for 'page_size'. Baseline 3 is appropriate when the schema does all the work.

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 specific action ('Get the activity timeline') and resource ('of a report'), with explicit enumeration of what activities are included ('comments, state changes, bounty awards, and triage responses'). It distinguishes from siblings like 'get_report' (which likely returns report metadata) and 'get_report_with_conversation' (which might focus on conversations rather than the full activity timeline).

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 context by specifying the type of activities retrieved, but does not explicitly state when to use this tool versus alternatives like 'get_report_with_conversation' or 'get_report'. No exclusions or prerequisites are mentioned, leaving the agent to infer appropriate usage from the tool's purpose alone.

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