Skip to main content
Glama
arxiv-mcp

arxiv-mcp

by evangit2

Extract Paper

extract_paper

Extracts readable full text from arXiv papers by combining API abstracts with ar5iv HTML body text, with abstract-only fallback when HTML is unavailable.

Instructions

Extract readable full text of a paper. No API key needed.

Returns the abstract (from the API) plus body text scraped from the ar5iv HTML rendering, truncated to max_chars. Falls back to the abstract alone when no HTML rendering exists yet.

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": {
      "arxiv_id": "<arxiv_id>"
    },
    "name": "extract_paper"
  }
}

Input Schema

NameRequiredDescriptionDefault
arxiv_idYes
max_charsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does it well: it discloses the data sources (API abstract vs. scraped ar5iv HTML), the truncation cap, and the degraded fallback when no HTML rendering exists. It stops short of describing failure behavior for an invalid or missing arXiv ID or any rate limits, so not 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?

Three short sentences, front-loaded with the purpose and then the return contract; no filler. The paragraph break is slightly odd but harmless, and every sentence conveys actionable information.

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?

An output schema exists, so return values need no further explanation, and the description covers the important non-obvious behaviors (source of text, truncation, fallback). For a two-parameter read tool this is nearly complete, with only input format expectations left implicit.

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 description coverage is 0%, so the description must compensate. It gives useful meaning for max_chars (truncation limit on the extracted body) but says nothing about the arxiv_id format (bare ID vs. URL/version suffix), leaving the required parameter's semantics to inference.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Extract readable full text of a paper" gives a specific verb and resource, and the follow-up sentence specifies exactly what is returned (abstract plus ar5iv body text). It does not explicitly contrast with the sibling get_paper, so an agent could still hesitate between the two, which keeps it below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The note "No API key needed" implies this is the low-friction retrieval path, and the fallback clause implies you should not count on body text. However, there is no explicit when-to-use versus get_paper or search_papers guidance and no stated prerequisites beyond the API-key remark.

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

Deploy Server

Other Tools