get_questions
Pack: trivia · Endpoint: https://gateway.pipeworx.io/trivia/mcp
Trivia questions matching a category/difficulty filter, from the Open Trivia Database.
Tool description as the model sees it
Get trivia questions from the Open Trivia Database. Optionally filter by category, difficulty, and question type.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amount | number | no | Number of questions to return. Defaults to 10. Max 50. |
category | number | no | Category ID to filter by. Use list_categories to get available IDs. |
difficulty | string | no | Difficulty level. One of: easy, medium, hard. |
type | string | no | Question type. One of: multiple (multiple choice), boolean (true/false). |
Example call
Arguments
{
"amount": 10
}
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_questions","arguments":{"amount":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_questions', {
"amount": 10
});
More examples
{
"amount": 5,
"category": 9,
"difficulty": "hard",
"type": "multiple"
}
Response shape
Always returns: count, questions
| Field | Type | Description |
|---|---|---|
count | number | Number of questions returned |
questions | array | Array of trivia questions |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Number of questions returned"
},
"questions": {
"type": "array",
"description": "Array of trivia questions",
"items": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "Trivia category name"
},
"difficulty": {
"type": "string",
"description": "Question difficulty level"
},
"type": {
"type": "string",
"description": "Question type (multiple or boolean)"
},
"question": {
"type": "string",
"description": "The trivia question text"
},
"correct_answer": {
"type": "string",
"description": "The correct answer"
},
"incorrect_answers": {
"type": "array",
"description": "Array of incorrect answer options",
"items": {
"type": "string"
}
}
},
"required": [
"category",
"difficulty",
"type",
"question",
"correct_answer",
"incorrect_answers"
]
}
}
},
"required": [
"count",
"questions"
]
}
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.