---
title: ToolRouter — Tool Detail
description: Detailed documentation for a ToolRouter tool including skills, parameters, and examples.
url: https://toolrouter.com/tools/trivia-quiz
---
# Trivia Quiz

Curated trivia questions across 20+ categories: history, science, sports, video games, music, film, and more. Filter by category, difficulty, and type (multiple choice or true/false). Each question includes shuffled answers with the correct one marked.

- **Version:** 0.02
- **Categories:** data, productivity

## Skills (3)

### Get Questions (`get_questions`)

Get trivia questions with answers. Supports filtering by category, difficulty, and question type. Returns shuffled answer choices with the correct answer marked.

**Parameters:**

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `amount` | number | No | Number of questions to return (1-50) [default: 10] |
| `category` | string | No | Category name (e.g. "Science", "History", "Video Games") or category ID. Use list_categories to see all options. |
| `difficulty` | string | No | Question difficulty level (easy, medium, hard) |
| `type` | string | No | Question type: multiple_choice (4 options) or true_false (multiple_choice, true_false) |

**Returns:** List of trivia questions with shuffled answer choices, correct answer, category, difficulty, and question type

**Examples:**

*Get 10 random trivia questions across all categories:*

```json
{
  "amount": 10
}
```

*Get 5 hard science questions (multiple choice):*

```json
{
  "amount": 5,
  "category": "Science",
  "difficulty": "hard",
  "type": "multiple_choice"
}
```

### List Categories (`list_categories`)

List all available trivia categories with their IDs. Use these category names or IDs when requesting questions with get_questions.

**Returns:** List of all trivia categories with their IDs and names

**Examples:**

*List all available trivia categories:*

```json
{}
```

*Get category IDs for use with get_questions:*

```json
{}
```

### Category Stats (`category_stats`)

Get the total number of available questions for a specific trivia category, broken down by difficulty level (easy, medium, hard).

**Parameters:**

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `category` | string | Yes | Category name (e.g. "Science & Nature", "History") or category ID number |

**Returns:** Category name, ID, total question count, and breakdown by difficulty level

**Examples:**

*Get question counts for the Science & Nature category:*

```json
{
  "category": "Science & Nature"
}
```

*Get stats for a category by ID:*

```json
{
  "category": "18"
}
```

## Quick Start

```bash
# Via CLI
TOOLROUTER_API_KEY=tr_live_xxx npx -y toolrouter-mcp call trivia-quiz get_questions --amount 10

# Via REST API
curl -H "Authorization: Bearer tr_live_xxx" \
     -d '{"tool":"trivia-quiz","skill":"get_questions","input":{"amount":10}}' \
     https://api.toolrouter.com/v1/tools/call
```

## Frequently Asked Questions

### Can I ask for a specific number of trivia questions?

Yes. `get_questions` accepts an amount from 1 to 50, and you can also filter by category, difficulty, and question type.

### Can I get true-or-false questions only?

Yes. Set the question `type` filter to true/false, or leave it open for multiple-choice questions with shuffled answers.

### How do I find what trivia categories are available?

Use `list_categories` to see the category names and IDs, then use `category_stats` to check how many questions are available in a category before you request them.

### Does the quiz show the correct answer?

Yes. Each question includes the shuffled choices and clearly marks the correct answer, so it is ready to display in an app or quiz flow.

---

## Get Started with ToolRouter

**Already connected?** Call any tool with `use_tool({ tool, skill, input })`. Browse tools with `discover` or visit https://toolrouter.com/llms-full.txt

**New to ToolRouter?** Connect with one command (no API key needed — auto-provisions on first use):

```bash
# MCP (Claude Code, Codex CLI)
claude mcp add toolrouter -- npx -y toolrouter-mcp

# MCP (Cursor, Windsurf, Cline, VS Code, Gemini CLI, Claude Desktop)
{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

# Claude Chat / Claude Cowork / Claude Mobile — add as a connector:
# Settings → Connectors → Add custom connector → URL: https://api.toolrouter.com/mcp

# ChatGPT — add as an app:
# Settings → Apps → Advanced settings → enable Developer mode → Create app → MCP Server URL: https://api.toolrouter.com/mcp

# CLI (works instantly, no restart needed)
npx -y toolrouter-mcp tools                    # browse all tools
npx -y toolrouter-mcp search "seo"             # search by keyword
npx -y toolrouter-mcp call seo analyze_page --url https://example.com
```

Free tools work immediately. For paid tools, visit https://toolrouter.com/claim to add credits.

All platforms: https://toolrouter.com/connect | Full catalog: https://toolrouter.com/llms-full.txt | Docs: https://toolrouter.com/docs