Skip to main content
Glama

parse_pdf_to_text

Extract raw text from arXiv PDFs by paper ID for analysis, summarization, or translation, with optional metadata enrichment.

Instructions

解析 PDF 并返回原始文本内容

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": {
      "arxivId": "<arxivId>"
    },
    "name": "parse_pdf_to_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
arxivIdYesarXiv 论文ID
paperInfoNo论文信息(可选,用于添加论文元数据)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the entire burden, and it discloses only that raw text is returned. It says nothing about whether the tool downloads the PDF, where the file must live, page or size limits, OCR of scanned pages, or caching/workdir side effects. The optional paperInfo parameter even implies a metadata-attachment behavior, which the description never mentions.

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?

A single front-loaded sentence with zero filler; the parse action and the return payload come first. It is efficient, though its brevity reflects under-specification rather than disciplined trimming.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a nested object parameter and no output schema, so the description should explain the metadata path and the shape of the returned text. It instead covers only the trivial case, leaving the agent unable to predict the effect of paperInfo or the behavior on large or malformed PDFs.

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 100%, so both parameters are already documented, establishing a baseline of 3. The description adds no meaning beyond the schema — it never explains the arxivId lookup path, the format expected, or what paperInfo changes about the returned text.

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?

The description states a specific verb and resource — parse a PDF and return its raw text content — which implicitly separates it from the sibling parse_pdf_to_markdown. However, it never names that sibling or otherwise explicitly disambiguates the two parsing variants.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of when the markdown variant is preferable, and no prerequisites such as the requirement that the PDF already exist or be downloadable. The agent must infer everything about selection and preconditions.

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