Skip to main content
Glama
pdf4me
by pdf4me

upload_file

Upload a local file to PDF4me storage, sending its content as base64. Returns a file reference for use in subsequent PDF processing tasks.

Instructions

Upload a local file to PDF4me storage using the UploadFile API (POST /api/v2/UploadFile). Sends payload with docName and docContent (base64). Returns the API response JSON/text (for example uploaded file reference details).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesLocal path to any file to upload.
Behavior3/5

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

With no annotations, the description must carry the transparency burden. It discloses the HTTP method, endpoint, payload fields, and return format, which is helpful. However, it does not mention potential failures, authorization requirements, or file size limits, leaving some behavioral aspects undisclosed.

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?

The description is two sentences, front-loaded with the core action, and includes only relevant technical details. There is no wasted text, and every sentence contributes to understanding the tool.

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 simple one-parameter tool without an output schema, the description adequately covers purpose, API details, request payload, and return value. It could mention relationship to subsequent tools or storage constraints, but given the low complexity, it is largely complete.

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?

The schema fully documents file_path with 100% coverage, so the baseline is 3. The description adds that the payload includes docName and docContent, but it does not explain how file_path maps to these fields, so it provides only marginal additional meaning beyond the schema.

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 clearly states the action ('Upload'), the object ('a local file'), and the destination ('PDF4me storage'), while referencing the specific API endpoint. This distinguishes it from all sibling tools, none of which focus on uploading a local file.

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?

The description provides clear context (upload a local file to cloud storage before using PDF operations) but does not explicitly state when to use this tool versus alternatives, such as when a file is already stored in PDF4me. Usage is implied rather than spelled out with exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server