get_category_stats
Pack: trivia · Endpoint: https://gateway.pipeworx.io/trivia/mcp
Get the total and per-difficulty question counts for a specific category.
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.