Skip to main content
Glama

Read Document

read_document
Read-only

Read the content of one or more documents, event source bundles, trial records, or clinical studies. Supports three identifier formats -- use whichever you have:

  • Maven IDs: "doc_...", "evt_...", or "trial_..." from search_documents, get_recent_events, research_entity, or search_entities results.

  • NCT IDs: ClinicalTrials.gov identifiers like "NCT04380636".

  • URLs: any life sciences URL -- a PubMed abstract, an FDA approval letter, a press release. Maven reads and structures the content automatically.

Pass a single ID or a list of up to 10 IDs. Each document costs 1 credit.

Use max_doc_tokens to control how much content is returned per document. Defaults to 8000. Applies to all formats except "summary". Each document response is capped at about 25,000 bytes (roughly 6,000 tokens of text); content past the cap is cut and the response carries truncation_reason "response_budget".

Four formats: "summary" (short), "sections" (structured fields), "text" (full markdown), "citations" (citable claims, requires query param).

Start with "summary" or "sections". Escalate to "text" or "citations" only when needed.

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": {
      "ids": "<ids>"
    },
    "name": "read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesSingle ID or list of up to 10. Accepts Maven IDs, NCT IDs, or URLs.
queryNoRequired when format='citations'. Describes what claims to extract.
formatNoContent format. Default: 'summary'.summary
max_doc_tokensNoMax tokens per document. Ignored for 'summary'. Default 8000. Each document response is capped at about 25,000 bytes (roughly 6,000 tokens of text), so values above about 6000 return no more.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / max_doc_tokens / description
      Previous value: -"Max tokens per document. Ignored for 'summary'. Default 8000."New value: +"Max tokens per document. Ignored for 'summary'. Default 8000. Each document response is capped at about 25,000 bytes (roughly 6,000 tokens of text), so values above about 6000 return no more."
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, establishing this as a safe external read; the description correctly does not restate that. It adds genuinely useful behavior beyond annotations: 1 credit per document, a 10-ID batch ceiling, the ~25,000 byte / ~6,000 token response cap, and the truncation_reason "response_budget" signal. That is real added value, though it does not describe error behavior for invalid or unfetchable IDs, which keeps it below a 5.

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?

Front-loads the core action, then uses a scannable bullet list for the three identifier formats and a clear four-format enumeration. The max_doc_tokens/cap paragraph closely duplicates the schema's own parameter description, which is the main redundancy. No filler sentences otherwise.

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?

For a batch-read tool with an output schema and full annotation coverage, this is complete: it covers accepted inputs, batch limits, cost, format trade-offs, and truncation semantics. An agent has everything needed to call it correctly on the first attempt without consulting other sources.

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 is 3. The description earns above baseline by conveying the meaning of each format ("summary" short, "sections" structured fields, "text" full markdown, "citations" citable claims requiring query) and the practical ceiling on max_doc_tokens (~6000), which the schema only hints at. Identifier format examples are useful but largely mirrored in the schema's ids description.

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 the content of one or more documents, event source bundles, trial records, or clinical studies") and lists the accepted identifier families. The mention of where Maven IDs come from (search_documents, get_recent_events, research_entity) implicitly positions this as the retrieval step rather than the search step, so an agent can tell it apart from siblings.

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 explicit escalation guidance for the format parameter ("Start with 'summary' or 'sections'. Escalate to 'text' or 'citations' only when needed") and notes citations requires the query param. It also tells the agent which sibling tools produce usable IDs. It stops short of stating when not to call this tool (e.g., when to prefer research_entity for a fresh lookup), so it is strong but not complete.

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