Skip to main content
Glama

Fetch a page as markdown

fetch
Read-onlyIdempotent

Fetch a page's markdown twin by its path: /record/{slug}.md (add ?as_of=YYYY-MM-DD for a past day), /record/{slug}/{predicate}.md (a fact page: one fact's every dated value, e.g. /record/anthropic/revenue.md; entity_state's fact_pages lists them), /record/{slug}/diff.md?from=YYYY-MM-DD&to=YYYY-MM-DD (what changed between two days, as entity_diff answers), /timelines/{slug}.md, /timelines/{slug}/{YYYY}.md (one year of a timeline), /claim/{id}.md, /day/{YYYY-MM-DD}.md, /days/{YYYY}.md, /brief/{YYYY-MM-DD}.md, /brief/week/{YYYY-MM-DD}.md, /trends/{topic}.md (add ?in=ai or ?in=tech, and ?company= for one company), or a site page: /index.md, /record.md, /timelines.md, /changes.md, /days.md, /brief.md, /trends.md, /facts.md, /people.md, /models.md, /identifiers.md, /about.md, /api-docs.md, /connect.md, /compare.md, /as-of-date.md, /data.md, /privacy.md, /terms.md. A query string a page does not read is refused. A day after today or an impossible date is not a page. A page longer than 48,000 characters is cut at a line, with a note naming the tool that returns the rest.

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
idYesPage path ending in .md, with its query string if any, e.g. /record/google.md, /record/anthropic/revenue.md, /trends/models.md?company=openai or /about.md

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
textNoThe page as markdown
titleNo
completeNofalse when the page was cut
metadataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "complete": {
      +      "description": "false when the page was cut",
      +      "type": "boolean"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "metadata": {
      +      "type": "object"
      +    },
      +    "text": {
      +      "description": "The page as markdown",
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world scope, so safety is covered. The description still earns credit for disclosing non-obvious behavior: unread query strings are refused, future or impossible dates are not pages, and output over 48,000 characters is line-truncated with a pointer to the tool that returns the remainder. Those failure and truncation semantics go materially 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.

Conciseness3/5

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

The lead sentence is well front-loaded, but the body becomes a long comma-run of twenty static site pages (/privacy.md, /terms.md, /about.md) whose individual enumeration adds little selection value and makes the two constraint sentences at the end easy to miss. Shorter grouping ('or any top-level site page such as /index.md, /record.md, ...') would preserve the information without the wall of text.

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?

A single required path parameter, an output schema that already documents return shape, and annotations that cover read safety mean the description's remaining burden is addressing rules and failure modes — both are fully covered, including discovery of fact-page slugs and truncation fallback.

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

Parameters4/5

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

Schema coverage is 100% and the id property already carries examples, so the baseline is 3. The description adds real grammar beyond the schema: which query parameters each path family reads (?as_of, ?from/?to, ?in=ai|tech, ?company=<key>) and which paths accept none, which is exactly the meaning an agent needs to construct a valid id.

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?

Opens with a specific verb and resource ('Fetch a page's markdown twin by its path') and then defines the exact address space, so an agent knows precisely what class of object this returns. Enumerated path families (/record/{slug}.md, /timelines/{slug}/{YYYY}.md, /claim/{id}.md, /diff.md) make it distinguishable from structured siblings like entity_diff or entity_state at a glance.

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?

Gives concrete routing context: the diff page answers 'what changed between two days, as entity_diff answers', and it points at entity_state's fact_pages as the discovery mechanism for fact-page paths. What it lacks is an explicit statement of when to prefer the structured sibling tools over fetching the markdown twin, leaving that inference to the agent.

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.

Resources