get-random-pages
Returns randomly chosen wiki pages from a chosen namespace as titles and IDs for sampling or discovery; pass returned titles to get-pages to read content.
Instructions
Returns randomly chosen wiki pages from one namespace, as each page's title, page ID, and namespace ID; the API counterpart of Special:Random. One call's pages are a fair random sample; separate calls can overlap because they read the same ordering from different starting points. There is no continuation; each call picks a new starting point. For page content, pass the titles to get-pages.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-random-pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wiki | No | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. | |
| limit | No | Number of wiki pages to draw (1..500) | |
| filter | No | Filter the drawn wiki pages by redirect status | nonredirects |
| namespace | No | Namespace ID to draw wiki pages from |