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

NameTypeRequiredDescription
categorynumberyesCategory 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

FieldTypeDescription
category_idnumberThe category ID
totalnumberTotal question count for category
easynumberEasy difficulty question count
mediumnumberMedium difficulty question count
hardnumberHard 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.

Regenerated from source · build September 15, 2026