Home / Servers / GitHub API / api_insights_get_summary_stats_by_actor

Get summary stats by actor

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Get summary stats by actor Get overall statistics of API requests within the organization made by a specific actor. Actors can be GitHub App installations, OAuth apps or other tokens on behalf of a user. Under normal… [GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}]

Name on the gateway: github_api__api_insights_get_summary_stats_by_actor · read-only.

Parameters

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
actor_type requiredinstallation | classic_pat | fine_grained_pat | oauth_app | github_app_user_to_serverThe type of the actor
actor_id requiredintegerThe ID of the actor
min_timestamp requiredstringThe minimum timestamp to query for stats. This is a timestamp in ISO 8601…
max_timestampstringThe maximum timestamp to query for stats. Defaults to the time 30 days ago.…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__api_insights_get_summary_stats_by_actor",
  "arguments": {
    "org": "…",
    "actor_type": "…",
    "actor_id": 0,
    "min_timestamp": "…"
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the get summary stats by actor tool with org set to ….

More from GitHub API