Skip to main content
Glama
pdf4me
by pdf4me

get_document_from_pdf4me

Subscribe a callback webhook to PDF4me with callback_url and doc_name, saving the API response as JSON to retrieve documents automatically.

Instructions

Subscribe a callback webhook via PDF4me WebhookSubscribe (/api/v2/WebhookSubscribe). Provide callback_url and doc_name. Saves API response as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_nameYes
output_dirNo
callback_urlYes
output_file_nameNowebhook_subscribe_response.json
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It only mentions that the API response is saved as JSON, but does not state required permissions, side effects of subscribing, reversibility, or behavior on failure. This is insufficient for a tool that performs a side-effectful operation.

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 action and resource. Every word earns its place, with no redundant or vague filler. It is concise and well-structured for a tool of this simplicity.

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

Completeness2/5

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

The tool has 4 parameters, no output schema, and no annotations. The description covers only a subset of parameters and does not explain the webhook subscription flow or the output file behavior. It is incomplete for an agent to correctly invoke the tool, missing critical details about output_dir and output_file_name.

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

Parameters1/5

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

Schema description coverage is 0%, so the description must compensate. It names only two required parameters (callback_url and doc_name) without explaining their meanings, and ignores output_dir and output_file_name entirely. This leaves 4 parameters largely undocumented, failing to provide necessary semantic meaning.

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 tool's purpose: subscribing a callback webhook via PDF4me WebhookSubscribe. It uses a specific verb ('Subscribe') and resource ('callback webhook'), and this is distinct from sibling tools that handle PDF operations, making the purpose unambiguous.

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?

The description provides clear context for usage: it tells the user to provide callback_url and doc_name. While it doesn't explicitly mention alternatives or when-not-to-use, the webhook subscription context is unique compared to sibling tools, so the usage is implicitly clear.

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