Home / Servers / GitHub API / api_insights_get_subject_stats

Get subject stats

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

Get subject stats Get API request statistics for all subjects within an organization within a specified time frame. Subjects can be users or GitHub Apps. Under normal conditions, you can expect API data to appear… [GET /orgs/{org}/insights/api/subject-stats]

Name on the gateway: github_api__api_insights_get_subject_stats · read-only.

Parameters

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
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.…
pageintegerThe page number of the results to fetch. For more information, see "Using…
per_pageintegerThe number of results per page (max 100). For more information, see "Using…
directionasc | descThe direction to sort the results by.
sortarrayThe property to sort the results by.
subject_name_substringstringProviding a substring will filter results where the subject name contains the…

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_subject_stats",
  "arguments": {
    "org": "…",
    "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 subject stats tool with org set to ….

More from GitHub API