Get Category Stats
get_category_statsQuestion inventory for one Open Trivia Database (opentdb.com) category, given the numeric category id from list_categories. Returns the total number of quiz questions in that category plus the easy, medium, and hard counts. Answers how many trivia questions the Open Trivia DB holds on a topic before requesting a quiz round of a given difficulty.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": 9
},
"name": "get_category_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | Category ID. Use list_categories to get available IDs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| easy | Yes | Easy difficulty question count | |
| hard | Yes | Hard difficulty question count | |
| total | Yes | Total question count for category | |
| medium | Yes | Medium difficulty question count | |
| category_id | Yes | The category ID |