get_category_stats
Pack: trivia · Endpoint: https://gateway.pipeworx.io/trivia/mcp
The question counts available in one trivia category, from the Open Trivia Database.
Tool description as the model sees it
Question 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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
category | number | yes | Category ID. Use list_categories to get available IDs. |
Example call
Arguments
{
"category": 9
}
curl
curl -X POST https://gateway.pipeworx.io/trivia/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_category_stats","arguments":{"category":9}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_category_stats', {
"category": 9
});
Response shape
Always returns: category_id, total, easy, medium, hard
| Field | Type | Description |
|---|---|---|
category_id | number | The category ID |
total | number | Total question count for category |
easy | number | Easy difficulty question count |
medium | number | Medium difficulty question count |
hard | number | Hard difficulty question count |
Full JSON Schema
{
"type": "object",
"properties": {
"category_id": {
"type": "number",
"description": "The category ID"
},
"total": {
"type": "number",
"description": "Total question count for category"
},
"easy": {
"type": "number",
"description": "Easy difficulty question count"
},
"medium": {
"type": "number",
"description": "Medium difficulty question count"
},
"hard": {
"type": "number",
"description": "Hard difficulty question count"
}
},
"required": [
"category_id",
"total",
"easy",
"medium",
"hard"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"trivia": {
"url": "https://gateway.pipeworx.io/trivia/mcp"
}
}
}
See Getting Started for client-specific install steps.