Skip to main content
Glama

process_document

Uploads and processes a PDF from a URL or local file path, returning a new document and its status; check with get_document before reading content.

Instructions

Upload and process a PDF from a URL or a local file path (≤100MB). Processing typically takes 0-3 minutes depending on document size (estimate: 2 seconds per page). Returns the new document and its processing status; call get_document() to confirm it has finished before reading its content.

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": {
      "url": "<url>"
    },
    "name": "process_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to a PDF document or local file path
folder_idNoTarget folder ID. Use "root" for the root folder, or omit to use the user's default folder (configured in settings).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.8.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the 100MB size cap, expected latency (0–3 minutes, ~2 seconds per page), and that processing is asynchronous, returning a status that must be confirmed via get_document(). It leaves out permission requirements, behavior on duplicate uploads, and the meaning of status values or failure modes.

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?

Three tight sentences, front-loaded with the action and inputs, followed by timing expectations and the required follow-up call. Every sentence contributes operational information and nothing is repeated.

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 two-parameter ingestion tool with no annotations and no output schema, the description covers what comes back (document plus processing status), how long it takes, and the necessary next step. Error handling and status semantics are the remaining gaps, but the essential call-and-poll workflow is fully conveyed.

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 the url and folder_id parameters are already documented in the schema, including the "root" default behavior. The description adds only the 100MB limit and the URL-vs-local-path acceptance, which is modest added meaning over the schema baseline.

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 description states a specific verb and resource ('Upload and process a PDF') and names both accepted input sources (URL or local file path). It also distinguishes itself from get_document, which is named as the follow-up status-check tool, so an agent can route between them without opening either schema.

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

Usage Guidelines4/5

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

It gives clear context for use — you have a PDF at a URL or path and want it ingested — and explicitly routes the agent to get_document() before reading content. It does not state exclusions, such as what to do if the document already exists or how it differs from browse_documents/search_documents, so it stops short of full when/when-not guidance.

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