Skip to main content
Glama

Get Wikipedia page content

wikipedia_page_content_get
Read-onlyIdempotent

Get a Wikipedia page's plain-text lead, rendered HTML or wikitext, with sections, links, categories, templates and media. Requires title. For the page itself, use wikipedia_page_get. Costs credits; see meta.creditsCharged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "title": "<title>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "wikipedia_page_content_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoWikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.en
titleYesRequired. Page title on the chosen edition, e.g. `Albert Einstein`, `C++` or `Talk:Barack Obama`. URL-encode it in the path.
formatNo`text` for the plain-text lead (no lists or tables), `html` for the rendered article, `wikitext` for the source. Default: `text`.text
contextYesDescribe the user's underlying goal in one sentence, not the tool you are calling.
sectionNoHTML section number to return instead of the whole article.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess.
conversation_idNoEcho the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds one genuinely new behavioral fact — the call costs credits, visible via `meta.creditsCharged` — which is valuable for cost-sensitive agents, but it says nothing about payload size, truncation, rate limits, or failure modes on missing pages. With annotations doing most of the work, this is an adequate but thin addition.

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?

Three short sentences, front-loaded with the capability, then the prerequisite, then the sibling routing and cost note. Nothing is padded, though the 'Requires `title`' clause is redundant with the schema's required array and could be dropped.

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?

For a 7-parameter read tool with a rich, fully documented schema and strong annotations, the description covers the essentials: what comes back, which sibling to prefer, and that it is billed. The analytics parameters (`context`, `llm_model`, `conversation_id`) are fully explained in the schema, so omitting them here is reasonable; only payload-size and error behavior remain unaddressed.

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 description coverage is 100%, including per-enum explanations for `format` and the `section` semantics, so the baseline is 3. The description only restates 'Requires `title`', which duplicates the schema's required list and adds no format, encoding, or interaction detail (e.g. how `section` relates to `format`) beyond what the schema already provides.

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

Purpose4/5

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

The description names a specific verb and resource ('Get a Wikipedia page's plain-text lead, rendered HTML or wikitext') and enumerates what the payload includes (sections, links, categories, templates, media), which tells an agent this is the heavy content endpoint rather than a metadata endpoint. It also names a sibling, `wikipedia_page_get`, as the tool for 'the page itself', though that phrase is slightly ambiguous about what the sibling actually returns.

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

Usage Guidelines4/5

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

It gives an explicit routing rule: use `wikipedia_page_get` for the page itself, implying this tool is for content extraction. What is missing is a negative condition — e.g. when content is unnecessary or when a cheaper sibling (pageviews, links list, media list) already answers the question — so the agent must infer that.

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.