Skip to main content
Glama

Get Draft File URL

get_draft_file_url
Read-only

Get a short-lived, one-time-use download URL for a PDF preview of the draft with signature fields rendered at their configured coordinates. Returns JSON with downloadUrl + fileName + mimeType + expiresInMinutes. The user opens the URL in a browser; no Authorization header is required. Use this when the MCP client should hand the user a clickable link. If the client can render PDFs inline, prefer get_draft_file (returns the PDF as an embedded resource via the session Bearer token). Typical preview flow: create_draft → get_draft_file_url (or get_draft_file) → user reviews PDF → (optional update_draft and re-fetch) → send_draft. Fields without valid coordinates (page, x, y) are not rendered in the PDF but remain in the draft data. The URL expires after 10 minutes and is consumed on successful download. The draft must still have status draft and must not be expired.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
draftIdYesUnique identifier of the draft to preview

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Discloses important behavior beyond annotations: the URL is short-lived, one-time-use, expires after 10 minutes, is consumed on download, requires no Authorization header, and only works while the draft is still in draft status and not expired. It also explains that fields without valid coordinates are omitted from the rendered PDF but remain in draft data. This adds substantial operational context beyond the readOnlyHint annotation.

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 detailed but every sentence contributes distinct useful information: purpose, return payload, auth requirement, usage guidance, workflow integration, rendering caveat, and constraints. It is front-loaded with the core purpose and then provides necessary operational context without redundancy.

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 single-parameter tool with no output schema, the description fully covers return values, expiry behavior, authentication, prerequisites, and sibling differentiation. The mention of the typical preview flow also makes the tool's role in a larger process clear and sufficiently 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?

Schema coverage is 100%, so the draftId parameter is already fully described in the schema. The description adds contextual constraints such as draft status and expiry but does not add new parameter-level semantics. Baseline 3 is appropriate given complete schema coverage.

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?

States a specific verb and resource: 'get a short-lived, one-time-use download URL for a PDF preview of the draft.' It clearly distinguishes itself from get_draft_file by describing the URL-based output and the condition under which each tool is appropriate.

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?

Explicitly says when to use this tool ('when the MCP client should hand the user a clickable link') and when to prefer an alternative ('If the client can render PDFs inline, prefer get_draft_file'). It also provides a typical preview flow with related tools, leaving no ambiguity about placement in a workflow.

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.

Resources