Skip to main content
Glama

pdf_signer.get_document

Fetch a PDF document session's bytes by doc_id for display in the signing app viewer. Include optional user_id to load the correct file.

Instructions

Fetch a PDF document session's bytes for the signing app viewer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
user_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
statusYes
filenameYes
page_countYes
stamp_pageNo
stamp_rectNoStamp footprint [x0, y0, x1, y1] in PDF user space
data_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does little beyond implying a read ('Fetch'). It does not disclose permission/user scoping despite a user_id parameter, nor error behavior, size limits, or whether bytes are raw or encoded. The only real disclosure is that the result is document bytes.

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?

A single front-loaded sentence with no filler, so it is efficient. It is arguably under-specified rather than wasteful, but structurally it is clean and appropriately sized for the operation.

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?

An output schema exists, so return values need not be described. However, for a 2-parameter tool with 0% schema coverage and no annotations, the description is too thin: it omits parameter meaning, usage context, and behavioral constraints, leaving clear gaps.

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

Parameters2/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 for the two undocumented parameters, and it does not: neither doc_id nor user_id is explained. The phrase 'document session' weakly implies doc_id identifies a session, but user_id is entirely unaddressed, leaving the parameter semantics essentially unexplained.

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?

The description pairs a specific verb ('Fetch') with a specific resource ('a PDF document session's bytes'), which is far more informative than the bare name. It is distinguishable from mutation siblings like pdf_signer.sign and pdf_signer.cancel, but it does not explicitly name those alternatives to sharpen the contrast.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives such as pdf_open, pdf_edit, or the sibling sign/cancel operations. The phrase 'for the signing app viewer' hints at context but gives no condition, prerequisite, or exclusion that would route an agent.

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