Skip to main content
Glama

fetch

Retrieve a paper's TeX source or born-digital PDF from a folder, archive, arXiv ID/link, or local file into a work directory for translation.

Instructions

Fetch a paper's TeX source (folder, archive, arXiv ID/link) or born-digital PDF into a work directory. See guide.

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": {
      "source": "<source>",
      "out": "<out>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
outYeswork directory to create
mainNomain .tex file when detection is ambiguous
sourceYesfolder, archive, arXiv ID/link, or local .pdf

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the agent knows this writes locally and reaches external sources; the description reinforces this by naming arXiv and a directory to create. It adds nothing about what happens if `out` already exists, network/rate-limit failures, or overwrite behavior — meaningful gaps for an open-world fetch.

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?

Two short sentences, front-loaded with the action and resource, with the accepted input forms inline and the cross-reference last. No filler sentences.

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

Completeness3/5

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

There is no output schema, and the description never says what the work directory will contain on success (downloaded .tex tree, extracted archive, converted PDF) or how ambiguity in `main` is surfaced. For a tool that writes a directory from external inputs, that is a notable omission, though the parameter schema covers the inputs fully.

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 100%, so all three parameters (source, out, main) are already documented with accepted forms and the ambiguity condition for `main`. The description's parenthetical restates the `source` schema rather than adding syntax, precedence, or fallback rules, so baseline 3 applies.

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?

States a specific verb ("Fetch") and specific resources (a paper's TeX source or born-digital PDF) and the destination (a work directory), with accepted input forms parenthesized. It is clear what the tool does, though it does not explicitly contrast itself with siblings like `prepare` or `build`, only deferring to `guide`.

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?

Usage is implied by the resource scope (obtain source into a work directory) plus a pointer to `guide` for fuller instructions. There is no explicit when-to-use/when-not or statement of an alternative among the ten siblings, so an agent must infer the routing.

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