Skip to main content
Glama

AsOf

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, /about.md, /api-docs.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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent read, and the description adds real behavior beyond them: unread query strings are refused, dates after today or impossible dates are not pages, and pages over 48,000 characters are truncated at a line with a note naming the tool that returns the rest. These are exactly the error and limit conditions an agent needs before calling.

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 first clause is well front-loaded, and the catalog largely earns its space for a path-addressed tool. However, it is delivered as one enormous run-on sentence with a long comma-separated list of static site pages, which is hard to scan and could be grouped or trimmed.

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 one-parameter read tool with no output schema, the description covers what is returned (markdown), which paths are valid, how invalid dates and queries fail, and how truncation is signaled and where to go for the remainder. Only minor gaps remain, such as whether the markdown includes metadata headers.

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%, so the baseline would be 3, but the description goes well past the schema's single example by enumerating the distinct path grammars (fact pages, diff pages with from/to, year-scoped timelines, day/brief/trends pages) and their query parameters. This meaningfully expands what the single `id` string can be.

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 and resource — fetching a page's markdown twin by its path — and immediately makes the addressable surface concrete by enumerating path forms. An agent can distinguish this from siblings like entity_diff, entity_state, or search because those return structured answers while this returns a rendered markdown page at a path.

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?

The path catalog functions as strong context: it tells the agent which page types exist and how to reach them, and it cross-references entity_state's fact_pages for discovering fact pages. It stops short of explicit routing statements such as when to prefer fetch over entity_diff or search, so usage is well-scoped but not fully adjudicated against alternatives.

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