Skip to main content
Glama

mediawiki_get_sections

Read-onlyIdempotent

Retrieve section structure or specific content from MediaWiki pages. Use to get table of contents or extract particular sections like Installation or References.

Instructions

Get page section structure (TOC) or specific section content.

USE WHEN: User asks "what sections does X have", "show the table of contents", "get the Installation section".

NOT FOR: Full page content (use mediawiki_get_page).

PARAMETERS:

  • title: Page name (required)

  • section: Section index to retrieve content (optional; omit for TOC only)

  • format: "wikitext" (default) or "html" (for section content)

RETURNS: Section headings with indices, or specific section content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesPage title to get sections from
sectionNoSpecific section number to retrieve content for (0 = intro, 1+ = sections). Omit to list all sections.
formatNoOutput format for section content: 'wikitext' (default) or 'html'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
formatNo
messageNo
page_idYes
sectionsNo
section_titleNo
section_contentNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/olgasafonova/mediawiki-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server