Skip to main content
Glama

MediaWiki

mediawiki
Read-only

Fetch Wikipedia articles by title, run full-text searches, and resolve footnotes or citations across MediaWiki sites, eliminating the need for web searches with site filters.

Instructions

Search and retrieve content from Wikipedia and other MediaWiki sites.

Use this for direct Wikipedia access without resorting to web_search with site: filters. Fetches articles by title (no URL guessing), runs native full-text wiki search, and resolves footnotes/inline citations on a specific article. Wikipedia URLs are also handled automatically by web_fetch_incisive.

Actions: page, search, references.

PARAMETER SPLIT: unlike other dedicated tools, this one uses two primary parameters:

  • title= for 'page' and 'references' (article identifier: title or URL)

  • query= for 'search' only (search terms) The dispatcher will reject mismatches with a specific error.

Query formats:

  • page: title (e.g. "Gödel's incompleteness theorems") or full Wikipedia URL. Supports section=, search= (within-page BM25), and slices= for targeted extraction.

  • search: keywords (e.g. "quantum entanglement"). Supports MediaWiki search operators.

  • references: title identifying the page; supply footnotes=[1,2] and/or citations=["#CITEREFFoo2005"] to resolve numbered footnotes and/or inline author-date citations. Both can be passed in one call.

search= operators (tantivy query language):

  • foo bar — match any term (whitespace is OR)

  • +foo +bar — require both terms

  • foo -bar — exclude 'bar'

  • "exact phrase" — adjacent words in order

  • "some words"~3 — phrase with up to 3-word gaps

  • (foo OR bar) baz — grouping + AND/OR/NOT

  • foo~ — fuzzy match (edit distance) Matching is case-insensitive; no stemming (search for both 'prompt' and 'prompts' if you want either). Stray punctuation in natural-language queries is silently dropped. Scripts written without spaces between words (Japanese, Chinese, Korean, Thai) are indexed by character n-gram: write each term unspaced, as it appears in the text, and it will match inside a clause. Such a term matches within one punctuation-delimited clause, so do not join across a 、 or 。

Wiki instance via wiki= parameter:

  • Language code: "en" (default), "de", "simple", "zh-yue", "pt-br"

  • Sister project: "commons", "wikidata", "meta", "species"

  • Hostname/URL: "en.wikipedia.org", "https://wiki.archlinux.org"

  • Ignored when title= is a full URL (URL wins)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wikiNoWiki instance: language code ("en", "de", "simple", "zh-yue"), sister-project alias ("commons", "wikidata", "meta", "species"), hostname ("en.wikipedia.org"), or full URL ("https://wiki.archlinux.org"). Default "en" (English Wikipedia). Ignored when title= is a full URL.en
limitNoMaximum search results to return (default 10, max 50).
queryNoSearch terms — required for the 'search' action. Supports MediaWiki's native search operators.
titleNoPage identifier — article title (e.g. "Gödel's incompleteness theorems") or full URL. Required for 'page' and 'references' actions. When a full URL is supplied, the wiki= parameter is ignored.
actionYesThe operation to perform. page: fetch a Wikipedia/MediaWiki article by title or URL. search: native full-text search across articles. references: resolve numbered footnotes and/or inline author-date citations on a specific article.
offsetNoStarting position for search pagination.
searchNoWithin-page BM25 keyword search for the 'page' action — distinct from action='search' which does full-text wiki search across all articles.
slicesNoSlice index or list of indices to retrieve from a cached page (page action only).
sectionNoSection name or list of section names to extract (page action only). Matches heading text.
citationsNoInline author-date CITEREF key(s) to resolve for the 'references' action. Accepts '#CITEREFFoo2005', 'CITEREFFoo2005', or bare 'Foo2005'.
footnotesNoNumbered footnote(s) to retrieve for the 'references' action. Accepts an int or list of ints matching the [^N] markers in rendered page content.
namespaceNoMediaWiki namespace for search: 0=Article (default), 1=Talk, 4=Project (Wikipedia:), 14=Category, 100=Portal.
max_tokensNoLimit on content length in approximate token count (default 5000).
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description richly discloses behavioral traits beyond the readOnlyHint annotation: case-insensitivity, no stemming, silent dropping of punctuation, character n-gram indexing for CJK scripts, URL-priority over wiki=, dispatcher rejection of mismatched parameters, and the behavior of search operators. This provides deep insight into how the tool executes, which annotations alone do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but well-structured with clear sections (Actions, PARAMETER SPLIT, Query formats, search= operators, Wiki instance). It is front-loaded with the primary purpose. However, the extensive operator details and lengthy examples could be trimmed; some sentences are redundant with the schema (e.g., action descriptions). Overall, it earns a slightly above-average score for organization but loses points for verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is extremely thorough on input semantics, covering all parameters, edge cases, and operator syntax. However, with no output schema, it does not describe the structure of the returned content (e.g., what fields are present in a page fetch or search result). This is a notable gap for a tool with multiple actions and no return type documentation, keeping it from a perfect score.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema coverage is 100%, the description adds substantial meaning: it explains the title/query split, the distinct meanings of 'search' (within-page) vs query (full-text), the footnotes/citations formats, and detailed query syntax. For example, it clarifies that 'search=' uses tantivy query language while 'query=' supports MediaWiki operators, which is not apparent from the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Search and retrieve content from Wikipedia and other MediaWiki sites.' It clearly distinguishes from siblings by noting it avoids web_search with site: filters and that web_fetch_incisive handles URLs automatically. The action list (page, search, references) further clarifies the scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is provided: 'Use this for direct Wikipedia access without resorting to web_search with site: filters.' It also mentions when web_fetch_incisive is the appropriate alternative for URL handling. The parameter-split explanation ('PARAMETER SPLIT') tells the agent exactly which parameters to use for each action, preventing misuse.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/blightbow/parkour-mcp'

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