get_random_articles

Pack: wikipedia · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_random_articles for the schema, then POST the same URL with its arguments for the data.

Discover random Wikipedia articles for serendipitous learning. Returns title, introduction text, and page ID.

Parameters

NameTypeRequiredDescription
countnumbernoNumber of random articles to fetch (1-10, default 5)

Example call

Arguments

{
  "count": 3
}

curl

curl -X POST https://gateway.pipeworx.io/wikipedia/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_random_articles","arguments":{"count":3}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_random_articles', {
  "count": 3
});

Response shape

Always returns: articles

FieldTypeDescription
articlesarrayArray of random article summaries
Full JSON Schema
{
  "type": "object",
  "properties": {
    "articles": {
      "type": "array",
      "description": "Array of random article summaries",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Article title"
          },
          "extract": {
            "type": "string",
            "description": "Article introduction text"
          },
          "pageid": {
            "type": [
              "number",
              "null"
            ],
            "description": "Wikipedia page ID or null if unavailable"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short description or null if unavailable"
          }
        },
        "required": [
          "title",
          "extract",
          "pageid",
          "description"
        ]
      }
    }
  },
  "required": [
    "articles"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the wikipedia pack
{
  "mcpServers": {
    "wikipedia": {
      "url": "https://gateway.pipeworx.io/wikipedia/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026