Skip to main content
Glama

fetch_fulltext

Download a preprint's full text as markdown by providing its DOI. The paper is retrieved from an S3 bucket, converted from JATS XML to markdown.

Instructions

Fetch the full text of a preprint as markdown, given its DOI.

Downloads the paper's source package from the Requester-Pays S3 bucket (your AWS account pays a fraction of a cent), extracts the JATS XML, and converts it to markdown. First use of a given month is slower (it indexes that month once); later DOIs in the same month are fast.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doiYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: S3 download cost, extraction process, and caching behavior. This well compensates for missing 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?

Three sentences, front-loaded with main purpose, each sentence adds value. No wasted words.

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?

Covers inputs, process, and performance. Output schema exists, so return values are not needed. Missing error conditions (e.g., invalid DOI) slightly reduce completeness.

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 0%, so description should add parameter meaning. It indirectly clarifies the 'doi' parameter by stating it's a DOI, but does not provide format, examples, or validation details.

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 clearly states it fetches the full text of a preprint as markdown given its DOI. It is distinct from the sibling tool search_preprints, which searches for preprints.

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 description provides context on when to use (given a DOI) and performance implications (first use of month slower). However, it lacks explicit 'when not to use' or comparison to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yogsoth-ai/medrxiv-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server