Skip to main content
Glama

Import a PDF into the editor

import_pdf

Returns a link (valid 24 hours) that opens an existing PDF in the ReflowPDF editor's import, which rebuilds it as an editable document. A PDF these tools printed, or one exported from the ReflowPDF editor with «Keep the PDF editable», is restored from its own source with one click (Restore), without AI; any other is rebuilt by AI, which needs a signed-in ReflowPDF account and uses its AI pages (the editor shows how many first). A document made with these tools needs no import: its edit link opens it. Give the PDF the person attached in the chat (pdf, as your client passes attached files), a public https URL of it, or its bytes in base64 (small files). A PDF you cannot pass on: the person opens the editor (https://app.reflowpdf.com) and imports it there.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdfNoA PDF the person attached in the chat, as your client passes attached files to tools.
urlNoA public https address of the PDF.
nameNoThe document's name. Default: the file's.
pdf_base64NoThe PDF's bytes, base64 (up to 20 MB).

Output Schema

NameRequiredDescriptionDefault
urlYesThe link; it works until expiresAt.
notesYesFacts about this link: how long it works, what it opens.
revisionNo
expiresAtYesWhen the link stops working (ISO 8601).
documentIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / notes / description
      Previous value: -"What to tell the person about this link."New value: +"Facts about this link: how long it works, what it opens."
  2. Changed1 schema field changed
    • addedInput schema / properties / pdf
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "A PDF the person attached in the chat, as your client passes attached files to tools.",
      +  "properties": {
      +    "download_url": {
      +      "description": "A temporary https address of the file.",
      +      "type": "string"
      +    },
      +    "file_id": {
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "download_url",
      +    "file_id"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations, it discloses a 24-hour link expiry, that AI rebuilding requires a signed-in ReflowPDF account, that AI page quota is consumed (and shown in the editor first), and that source-restorable PDFs avoid AI entirely. These are genuinely useful behavioral facts that annotations like openWorldHint and destructiveHint=false do not convey. The only gap is that it does not say what a repeated import of the same PDF does, which matters given idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key facts (link, 24 hours, restore-vs-AI) are front-loaded, but the middle sentences are dense with stacked parentheticals and guillemet-quoted editor labels, which slows parsing. The base64 'small files' hint duplicates the schema's 20 MB note, so a sentence does not fully earn its place.

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

Completeness5/5

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

For a tool with four optional inputs, a nested object, an output schema, and account/quota side effects, the description covers inputs, fallback, expiry, auth requirement, and cost. Return values need not be explained because an output schema exists, and yet the one field that matters (the time-limited link) is described anyway.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents all four parameters (100% coverage), so the baseline is 3, but the description adds something the schema cannot express: that pdf, url, and pdf_base64 are alternative ways to supply the same document, with base64 reserved for small files. That resolves the ambiguity created by a schema where every parameter is optional with no oneOf constraint.

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 opening sentence names a concrete action and output: it 'Returns a link (valid 24 hours) that opens an existing PDF in the ReflowPDF editor's import, which rebuilds it as an editable document.' It also implicitly separates itself from the editor-link flow by noting that documents made with these tools 'need no import: its edit link opens it.'

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

Usage Guidelines5/5

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

The description gives explicit positive cases (an attached PDF, a public https URL, or base64 bytes) and an explicit negative case ('A document made with these tools needs no import'), plus a manual fallback when the file cannot be passed programmatically. That is a when-to-use, when-not-to-use, and an alternative path all in one paragraph.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.