{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Get API usage statistics within an organization for a user broken down by the type of access.\n\nUnder normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"user_id":{"type":"string","description":"The ID of the user to query for stats"}},"required":["org","user_id"],"additionalProperties":false},"query":{"type":"object","properties":{"min_timestamp":{"type":"string","description":"The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."},"max_timestamp":{"type":"string","description":"The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."},"page":{"type":"integer","default":1,"description":"The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""},"per_page":{"type":"integer","default":30,"description":"The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""},"direction":{"type":"string","enum":["asc","desc"],"default":"desc","description":"The direction to sort the results by."},"sort":{"type":"array","items":{"type":"string","enum":["last_rate_limited_timestamp","last_request_timestamp","rate_limited_request_count","subject_name","total_request_count"],"default":"total_request_count"},"description":"The property to sort the results by."},"actor_name_substring":{"type":"string","description":"Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search."}},"required":["min_timestamp"],"additionalProperties":false}},"required":["path","query"],"additionalProperties":false},"name":"Get user stats","id":"github.api-insights.get-user-stats","example":{"path":{"org":"example","user_id":"example"},"query":{"min_timestamp":"example"}},"maxRequests":1,"summary":false}}