get_article_sections
Pack: wikipedia · Endpoint: https://gateway.pipeworx.io/wikipedia/mcp
Get the section outline of a Wikipedia article by title. Returns all headings and hierarchy to navigate content structure.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
title | string | yes | Wikipedia article title (e.g., “World War II”) |
Example call
Arguments
{
"title": "World War II"
}
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_article_sections","arguments":{"title":"World War II"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_article_sections', {
"title": "World War II"
});
More examples
{
"title": "Photosynthesis"
}
Response shape
Always returns: title, pageid, sections
| Field | Type | Description |
|---|---|---|
title | string | Article title |
pageid | number | Wikipedia page ID |
sections | array | Array of section headings with hierarchy |
Full JSON Schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Article title"
},
"pageid": {
"type": "number",
"description": "Wikipedia page ID"
},
"sections": {
"type": "array",
"description": "Array of section headings with hierarchy",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section heading text (HTML-stripped)"
},
"level": {
"type": "number",
"description": "Heading level (1-6)"
},
"number": {
"type": "string",
"description": "Section numbering (e.g., '1.2.3')"
},
"anchor": {
"type": "string",
"description": "URL anchor/fragment for section"
}
},
"required": [
"title",
"level",
"number",
"anchor"
]
}
}
},
"required": [
"title",
"pageid",
"sections"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"wikipedia": {
"url": "https://gateway.pipeworx.io/wikipedia/mcp"
}
}
}
See Getting Started for client-specific install steps.