Skip to main content
Glama

Fetch a document

fetch
Read-onlyIdempotent

Read one document by the id search returned. No API key. The result has id, title, text, url, and metadata. Template metadata includes trialUrl from the template sign-up link. An org API key or OAuth token with forms:read can read form: for a live published form in that organization. The text lists field labels and types. url is the public form URL, and metadata includes the same share links as get_form. A draft, an archived form, a deleted form, an unknown id, and a form in another organization are not found. The result leaves out applicant data. Workers AI stays off. Anonymous search and fetch share 30 reads per network per hour and a daily cap that defaults to 300.

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
idYesId from a search hit. Public ids start with doc: or template:. Organization form ids start with form:.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
textYes
titleYes
metadataYesString pairs. kind is doc, template, or form.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it names the not-found conditions (draft, archived, deleted, unknown id, other organization), the auth requirement for form: ids, the absence of applicant data, Workers AI being off, and the shared anonymous quota (30 reads/network/hour, default daily cap 300). These are exactly the operational facts an agent needs and none are derivable from 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?

Front-loaded with the core action and the no-key fact, but the middle becomes a scattered enumeration (trialUrl, text field listing, url, share-link parity with get_form) that reads like a data dictionary dump. Several result-field sentences would be redundant given the output schema and dilute the operational guidance.

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?

With an output schema present, return-value detail is arguably unnecessary, yet the description covers auth, failure modes, privacy, and rate limits comprehensively. The only omission is an explicit pointer to get_form as the alternative for live published forms rather than reading them via fetch.

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 already documents the id prefixes, so the baseline is 3; the description adds value by tying each prefix to consequences — doc:/template: are public with no key, form: requires forms:read scoped to the owning organization. That prefix-to-behavior mapping is not in the schema.

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 ('Read one document by the id search returned') and immediately anchors the tool to the sibling `search` whose output feeds it, so an agent can distinguish it from get_form or get_application 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?

Clearly implies the entry path (take the id from a search hit) and separates public doc:/template: reads from organization form: reads that need an API key or OAuth token with forms:read. It stops short of explicitly contrasting with get_form, which it only references obliquely ('the same share links as get_form').

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