Skip to main content
Glama

Create draft from uploaded PDF

create_draft_from_upload
Idempotent

Makes a draft in Inkly from an uploaded PDF. Nothing is sent. Returns the draft's id, status, and review_url: give the user that link to check and send it. Prefer PDF markers; guessed coordinates often land wrong. Omit fields to place them in the editor. Retries reuse upload_id.

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": {
      "upload_id": "<upload_id>"
    },
    "name": "create_draft_from_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoThe document title. Defaults to the file name.
fieldsNoOptional fields. A draft without fields can be finished in the editor.
messageNoA personal note in the invitation.
upload_idYesThe upload_id from start_pdf_upload, after its upload command has run.
recipientsNoUp to 25 people, at most 5 of them CCs. Each needs a ref, your short name for them that fields point at. Can be empty and added in the editor.
external_idNoYour own reference for this document, in printable ASCII. It is not required to be unique.
use_markersNoCreate fields from `{{...}}` markers in the PDF. `fields` then becomes optional, and any you send are added to the detected ones.
signing_orderNo`sequential` invites signers one at a time, in the order listed.parallel
automatic_remindersNoAutomatic reminders until the document is signed. On by default; set false only if the user asks for no reminders.

Output Schema

NameRequiredDescriptionDefault
documentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / recipients / description
      Added value: +"Up to 25 people, at most 5 of them CCs. Each needs a ref, your short name for them that fields point at. Can be empty and added in the editor."
    • changedInput schema / properties / upload_id / description
      Previous value: -"From `POST /uploads`, after the PDF has been uploaded."New value: +"The upload_id from start_pdf_upload, after its upload command has run."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "document": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "app_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "completed_at": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "created_at": {
      +          "format": "date-time",
      +          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +          "type": "string"
      +        },
      +        "id": {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +          "type": "string"
      +        },
      +        "recipients": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "email": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "invite_delivery": {
      +                "anyOf": [
      +                  {
      +                    "enum": [
      +                      "pending",
      +                      "sending",
      +                      "sent",
      +                      "failed",
      +                      "bounced",
      +                      "complained",
      +                      "suppressed"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "role": {
      +                "enum": [
      +                  "signer",
      +                  "cc"
      +                ],
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "pending",
      +                  "viewed",
      +                  "signed",
      +                  "declined"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "name",
      +              "email",
      +              "role",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "review_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "sent_at": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "enum": [
      +            "draft",
      +            "sent",
      +            "completed",
      +            "declined",
      +            "voided"
      +          ],
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        },
      +        "voided_at": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "app_url"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "document"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare this is a non-read-only, non-destructive, idempotent operation; the description adds meaningful behavior on top — no invitations actually go out, the response carries id/status/review_url, and retries reuse upload_id rather than duplicating. It does not discuss failure modes (bad coordinates, upload not yet run) beyond a hint about guessed coordinates.

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?

Five short sentences, each earning its place: purpose, the reassurance that nothing is sent, the follow-up action on review_url, field-placement advice, and the retry rule. Purpose and the most important safety fact are front-loaded.

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?

With an output schema present the description needn't itemize return values, yet it says enough about id/status/review_url to drive the next step, and it covers the prerequisite upload and idempotent retries. For a 9-parameter tool with nested field/recipient objects, it leaves only minor gaps around error handling.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further: it tells the agent to prefer PDF markers over guessed coordinates for fields, that omitted fields are placed in the editor, and that upload_id is the retry key. That adds real call-shaping meaning beyond the schema's per-parameter text.

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?

"Makes a draft in Inkly from an uploaded PDF" gives a concrete verb (creates a draft) and a concrete source (an uploaded PDF), which implicitly separates it from the template-based sibling. It never names an alternative explicitly, so an agent must infer that distinction from the resource phrasing.

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 establishes the key context: the output is a draft, "Nothing is sent", and the user must be given review_url to check and send. It also says to omit fields when the editor will place them and that retries reuse upload_id. It stops short of stating when to choose this over prepare_document_from_template, so the guidance is clear but not fully comparative.

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.