Skip to main content
Glama

get_pdf_file

Retrieve an original PDF by its file ID and return binary PDF content with SHA-256 checksum for AI document analysis.

Instructions

Retrieves an individual original PDF file by its file_id. Returns binary PDF content as an embedded MCP Blob resource (MIME: application/pdf) along with local file path and SHA-256 checksum for AI document analysis.

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": {
      "file_id": "<file_id>"
    },
    "name": "get_pdf_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 full burden and does well: it discloses that the return is binary PDF content delivered as an embedded MCP Blob resource, the MIME type, plus local path and SHA-256 checksum. It omits error behavior for missing file_ids, size limits, or permission requirements, so it is 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?

Two tight sentences with the identity of the resource front-loaded and return details second; no filler. Dense phrasing around the Blob/checksum clause slightly reduces readability but every clause carries 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?

For a single-parameter retrieval tool with no output schema, the description covers the return shape thoroughly, which is the hardest part here. The remaining gap is provenance of file_id and failure modes, which are non-trivial for an agent assembling a document-analysis workflow.

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 the description must compensate; it names file_id as the lookup key but does not explain its format or where the agent obtains one. Marginal added meaning over the bare 'File Id' schema title.

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?

Uses a specific verb and resource: 'Retrieves an individual original PDF file by its file_id', which distinguishes it from list-style siblings like list_collected_files or preview_question_page. It does not explicitly name an alternative tool, so it falls just short of 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?

Usage is only implied via 'for AI document analysis' and 'original PDF file'; there is no explicit statement of when to call this versus list_collected_files or preview_question_page. The agent must infer that this is the fetch step after discovering a file_id elsewhere.

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