Skip to main content
Glama

Fetch an Edgepedia article

fetch
Read-onlyIdempotent

Read an encyclopedia article in full: one Edgepedia article as Markdown with its citations, by a search result's id. Returns id, title, text, url, and metadata (topic path, license, credit). A topic: id lists that topic's parent, narrower topics, and articles, 120 a page; topic:root is the top of the tree, topic:geo the geography tree. citations: false gives [n] markers instead of inline source links. Show the credit line with any text you quote.

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": {
      "id": "<id>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe id of a search result (the last part of the article's address, such as "mount-fuji", or a topic's "topic:…" id).
idsNoMore ids to fetch with `id` in one call, up to 10 in all.
citeNoAdd a reference in this format (csl, bibtex, ris, apa, mla, chicago, harvard).
langNoThe article in this language, by its code ("es", "zh"): the translation when one is stored; otherwise the English, with how to have it translated.
pageNoA topic only: which page of its articles, from 1.
linksNoAdd the articles linking here (in), the links it makes (out), or both.
queryNoOnly the 3 passages that best match these words, each with a `cite_url`.
quoteNoA sentence from the article, or a chunk id: adds a `cite_url` that opens the page at it.
chunksNotrue = the text as paragraphs with stable ids, in `chunks`.
cursorNoWhere to continue, from a cut text's `next_cursor`.
formatNoThe text as plain text, HTML, JSON-LD, or Turtle instead of Markdown.
lengthNosnippet or lead for a short text; full (default) for the whole article.
tablesNotrue = add the article's tables as JSON and CSV.
outlineNotrue = add the list of the article's headings.
sectionNoOnly this section, by its heading ("Etymology", "History").
citationsNoDefault true. false = [n] markers instead of inline source links; the numbered reference list stays.
links_pageNoWith links "in" or "both": which 30 articles linking here, from 1.
max_tokensNoCut the text at a section boundary to about this many tokens; pass `next_cursor` as `cursor` for the rest.

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
textNo
titleNo
resultsNoWith `ids`: one entry per id, in order: that fetch's answer, or { id, error: { code, message } }.
metadataNo
moved_fromNoThe id asked for, when the article has since moved; store `id` or `canonical_id` instead.
canonical_idNoThe article's permanent id (ep…); `fetch` takes it, and it outlives an address change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "The article in this language, by its code (\"es\", \"zh\"): the translation when one is stored; otherwise the English, with how to have it translated.",
      +  "enum": [
      +    "en",
      +    "zh",
      +    "ar",
      +    "hi",
      +    "es",
      +    "fr",
      +    "bn",
      +    "pt",
      +    "id",
      +    "ur",
      +    "ru",
      +    "de",
      +    "ja",
      +    "pa",
      +    "mr",
      +    "vi",
      +    "te",
      +    "tr",
      +    "tl",
      +    "ta",
      +    "fa",
      +    "ko",
      +    "th",
      +    "it",
      +    "gu",
      +    "kn",
      +    "my",
      +    "pl",
      +    "uk",
      +    "or",
      +    "ml"
      +  ],
      +  "type": "string"
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / links_page
      Added value: +{
      +  "description": "With links \"in\" or \"both\": which 30 articles linking here, from 1.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "id",
      +      "title",
      +      "text",
      +      "url"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "results"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / results
      Added value: +{
      +  "description": "With `ids`: one entry per id, in order: that fetch's answer, or { id, error: { code, message } }.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "id",
      -  "title",
      -  "text",
      -  "url"
      -]
  3. Changed16 schema fields changed
    • addedInput schema / properties / chunks
      Added value: +{
      +  "description": "true = the text as paragraphs with stable ids, in `chunks`.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / cite
      Added value: +{
      +  "description": "Add a reference in this format (csl, bibtex, ris, apa, mla, chicago, harvard).",
      +  "enum": [
      +    "csl",
      +    "bibtex",
      +    "ris",
      +    "apa",
      +    "mla",
      +    "chicago",
      +    "harvard"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Where to continue, from a cut text's `next_cursor`.",
      +  "type": "string"
      +}
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "The text as plain text, HTML, JSON-LD, or Turtle instead of Markdown.",
      +  "enum": [
      +    "text",
      +    "html",
      +    "jsonld",
      +    "turtle"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / ids
      Added value: +{
      +  "description": "More ids to fetch with `id` in one call, up to 10 in all.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / length
      Added value: +{
      +  "description": "snippet or lead for a short text; full (default) for the whole article.",
      +  "enum": [
      +    "snippet",
      +    "lead",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / links
      Added value: +{
      +  "description": "Add the articles linking here (in), the links it makes (out), or both.",
      +  "enum": [
      +    "in",
      +    "out",
      +    "both"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / max_tokens
      Added value: +{
      +  "description": "Cut the text at a section boundary to about this many tokens; pass `next_cursor` as `cursor` for the rest.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / outline
      Added value: +{
      +  "description": "true = add the list of the article's headings.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "A topic only: which page of its articles, from 1.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Only the 3 passages that best match these words, each with a `cite_url`.",
      +  "type": "string"
      +}
    • addedInput schema / properties / quote
      Added value: +{
      +  "description": "A sentence from the article, or a chunk id: adds a `cite_url` that opens the page at it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / section
      Added value: +{
      +  "description": "Only this section, by its heading (\"Etymology\", \"History\").",
      +  "type": "string"
      +}
    • addedInput schema / properties / tables
      Added value: +{
      +  "description": "true = add the article's tables as JSON and CSV.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / canonical_id
      Added value: +{
      +  "description": "The article's permanent id (ep…); `fetch` takes it, and it outlives an address change.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / moved_from
      Added value: +{
      +  "description": "The id asked for, when the article has since moved; store `id` or `canonical_id` instead.",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The id of a search result (the last part of the article's address, such as \"mount-fuji\")."New value: +"The id of a search result (the last part of the article's address, such as \"mount-fuji\", or a topic's \"topic:…\" id)."
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior: return fields, topic pagination, `topic:root`/`topic:geo`, citation formatting, truncation with `cursor`, and credit requirements. That is rich context beyond the annotations.

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

Conciseness5/5

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

The description is front-loaded with the core purpose, then covers return shape, topic behavior, citation behavior, and a quoting requirement. For a tool with 18 parameters, it is dense and well organized with no wasted sentences.

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?

Given the rich input schema, annotations, and output schema, the description supplies everything an agent needs to choose and invoke the tool correctly. It explains key special behaviors like topic browsing, citation output, pagination, and credit attribution without needing to repeat every parameter.

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 all 18 parameters are fully documented in the schema and the baseline is 3. The description adds some useful nuance, such as topic hierarchy behavior and 120 articles per page, but does not add meaning for most parameters beyond what the schema already provides.

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 gives a specific verb and resource: "Read an encyclopedia article in full" and returns "one Edgepedia article as Markdown with its citations." It also distinguishes article fetches from topic listing via topic IDs, so the agent can tell what this tool does without opening the schema.

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 clear usage context: fetch by a `search` result's id, use `topic:` ids to browse topic trees, and show the `credit` line when quoting. It does not explicitly say when not to use this tool or name alternatives such as `connect` or `related`, so it falls short of a 5.

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.