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

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 May 9, 2026