Skip to main content
Glama

Wikipedia (Unofficial)

Search Wikipedia

search_wikipedia
Read-onlyIdempotent

Search Wikipedia for encyclopedic facts, sports event schedules, medal tables, officeholder rosters and biographies. Covers multi-sport games and tournaments edition by edition, Olympics, Asian Games, Commonwealth Games, Pan American Games, SEA Games, World Cup, with per-sport competition schedules, session dates, venues, results and medal tables, each on its own article ("Table tennis at the 2026 Asian Games", "Athletics at the 2028 Summer Olympics"). Use it when the article title is NOT predictable from the question, to find the exact title, then read the article body with get_article_extract; when the title IS predictable ("Table tennis at the 2026 Asian Games") skip straight to get_article_extract, since a search snippet is one truncated line. Also the right tool for government composition and officeholder rosters, "current cabinet members of Japan", "list of ministers and their positions", "who is in the German government", "cabinet of 2025", Wikipedia keeps cabinet, ministry, and government lists current for every country. And for general knowledge: "who is X", "what is Y", "history of Z", definitions. Returns matching article titles, snippets, page IDs, word counts. Chain with get_article_extract for the full text or a single section. Cheaper + more structured than scraping web search results; covers ~7M English articles updated continuously by the Wikipedia community.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "artificial intelligence"
    },
    "name": "search_wikipedia"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results to return (1-50, default 10)
queryYesSearch query, in ENGLISH, this searches the English Wikipedia, and a query in another language returns 0 hits. Translate non-English questions into English keywords first ("日本现任内阁成员名单" -> "current Japan cabinet members").

Output Schema

NameRequiredDescriptionDefault
resultsYesArray of search result objects
total_hitsYesTotal number of matching articles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Search query, in ENGLISH — this searches the English Wikipedia, and a query in another language returns 0 hits. Translate non-English questions into English keywords first (\"日本现任内阁成员名单\" → \"current Japan cabinet members\")."New value: +"Search query, in ENGLISH, this searches the English Wikipedia, and a query in another language returns 0 hits. Translate non-English questions into English keywords first (\"日本现任内阁成员名单\" -> \"current Japan cabinet members\")."
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "artificial intelligence"
      -  },
      -  {
      -    "limit": 5,
      -    "query": "climate change"
      -  }
      -]New value: +[
      +  {
      +    "query": "artificial intelligence"
      +  },
      +  {
      +    "limit": 5,
      +    "query": "climate change"
      +  },
      +  {
      +    "limit": 5,
      +    "query": "2026 Asian Games table tennis"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Search query"New value: +"Search query, in ENGLISH — this searches the English Wikipedia, and a query in another language returns 0 hits. Translate non-English questions into English keywords first (\"日本现任内阁成员名单\" → \"current Japan cabinet members\")."
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "results": {
      +      "description": "Array of search result objects",
      +      "items": {
      +        "properties": {
      +          "pageid": {
      +            "description": "Wikipedia page ID",
      +            "type": "number"
      +          },
      +          "snippet": {
      +            "description": "HTML-stripped preview text",
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Article title",
      +            "type": "string"
      +          },
      +          "wordcount": {
      +            "description": "Word count of article",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "title",
      +          "snippet",
      +          "pageid",
      +          "wordcount"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total_hits": {
      +      "description": "Total number of matching articles",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total_hits",
      +    "results"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "artificial intelligence"
      +  },
      +  {
      +    "limit": 5,
      +    "query": "climate change"
      +  }
      +]
  6. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds real value beyond that: it discloses the return shape (titles, snippets, page IDs, word counts), warns that snippets are truncated, notes the ~7M-article continuously updated corpus, and positions itself as cheaper/more structured than web scraping. It does not discuss rate limits or failure modes, keeping it short of a 5.

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

Conciseness3/5

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

Purpose and the key routing rule are front-loaded, which is good, but the middle section is padded with long enumerations of games, example article titles, and repeated phrasing about cabinet lists. Several example strings could be trimmed without losing information.

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

Completeness5/5

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

With an output schema present, rich annotations, and full schema coverage, the description supplies everything else an agent needs: domain scope, the routing decision against get_article_extract, the chaining pattern, and the English-query requirement. Nothing material is missing for correct invocation.

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

Parameters3/5

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

Schema coverage is 100%, so both query and limit are already documented, including the English-only constraint and the 1-50 range. The description reinforces the English/translation point but adds no new syntax or format guidance beyond the schema, so the baseline 3 applies.

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?

States a specific verb+resource (search Wikipedia) and immediately scopes the content domain: sports schedules, medal tables, officeholder rosters, general knowledge. It explicitly distinguishes itself from the sibling get_article_extract by naming the condition that separates them (unpredictable vs. predictable article title).

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?

Gives explicit when-to-use cases (unpredictable titles, cabinet/officeholder rosters, general knowledge) and an explicit when-NOT-to-use rule: if the title is predictable, skip straight to get_article_extract because a snippet is one truncated line. The alternative tool is named and the selection criterion is concrete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.