get_questions

Pack: trivia · Endpoint: https://gateway.pipeworx.io/trivia/mcp

Get trivia questions from the Open Trivia Database. Optionally filter by category, difficulty, and question type.

Parameters

NameTypeRequiredDescription
amountnumbernoNumber of questions to return. Defaults to 10. Max 50.
categorynumbernoCategory ID to filter by. Use list_categories to get available IDs.
difficultystringnoDifficulty level. One of: easy, medium, hard.
typestringnoQuestion 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

FieldTypeDescription
countnumberNumber of questions returned
questionsarrayArray 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.

Regenerated from source · build May 9, 2026