Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as fynk MCP. If you published it, claim ownership there.

Create document PDF upload URL

create-document-pdf-upload-url

Create a signed URL that a single PDF can be POST-uploaded to, for later use with create-document-from-pdf-upload.

Use this tool when:

  • The user wants to create a document from an existing PDF file and you need somewhere to upload it to first

The upload is an HTTP request you send yourself. If you cannot send HTTP requests with the file's contents, do not call this tool; ask the user to upload the PDF in the fynk app instead.

Call it once per PDF: each URL accepts exactly one file of up to 30 MB, and stops working at expires_at, a few minutes after it was issued.

Upload with a multipart/form-data POST to url that sends every entry of fields as a form field with its value unchanged, followed by the PDF as a final field named file; S3 ignores any field sent after the file. Only a 204 response means the upload succeeded, so check the status before calling create-document-from-pdf-upload, and request a new URL to retry a failed upload. With curl, send the fields with --form-string, since -F reads a value starting with @ or < as a file reference:

curl -w "%{http_code}\n" -X POST "<url>" \
  --form-string "key=<fields.key>" \
  --form-string "<each other entry of fields>=<its value>" \
  -F "file=@/path/to/contract.pdf;type=application/pdf"

curl reads ; and , in that file path as separators, so wrap a path containing either in escaped double quotes (-F "file=@\"/path/to/a;b.pdf\";type=application/pdf").

Then pass file_upload_uuid to create-document-from-pdf-upload.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create-document-pdf-upload-url"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
urlNoPerform a multipart/form-data POST request to this URL to upload the PDF
fieldsNoForm fields to send unchanged in the POST body, before a final "file" field holding the PDF contents. Its `key` is a storage path, not the upload uuid
expires_atNoWhen the URL stops being usable
file_upload_uuidNoPass as `file_upload_uuid` to create-document-from-pdf-upload once the upload to `url` has succeeded

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / fields / description
      Previous value: -"Form fields to send in the POST body, before a final \"file\" field holding the PDF contents"New value: +"Form fields to send unchanged in the POST body, before a final \"file\" field holding the PDF contents. Its `key` is a storage path, not the upload uuid"
    • addedOutput schema / properties / file_upload_uuid
      Added value: +{
      +  "description": "Pass as `file_upload_uuid` to create-document-from-pdf-upload once the upload to `url` has succeeded",
      +  "type": "string"
      +}
    • removedOutput schema / properties / uuid
      Removed value: -{
      -  "description": "Send this UUID to create-document-from-pdf-upload AFTER uploading the file to the given URL",
      -  "type": "string"
      -}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Well beyond the annotations: it discloses the 30 MB per-file cap, single-use semantics, expiry at expires_at 'a few minutes after it was issued', the requirement that only a 204 response counts as success, and that retries require minting a fresh URL. The only reason this is not a 5 is that it does not say whether issuing a URL has side effects or leaves orphaned records if the upload is never performed.

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?

Front-loaded with purpose, then a bulleted trigger, then mechanics, then a runnable curl example — a clean progression with no filler. The parenthetical about curl treating ';' and ',' in file paths as separators is a deep edge case that inflates length, but it is actionable rather than decorative.

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?

With zero inputs, an existing output schema, and a multi-step external HTTP flow as the real complexity, the description covers everything an agent needs: what gets returned, how to construct the POST body, field ordering, success criteria, expiry, and the handoff value for the next tool. Nothing material is left to inference.

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?

The tool takes zero input parameters, so the baseline of 4 applies. The description goes further by documenting the shape of the response (url, fields, expires_at, file_upload_uuid) and how each piece is consumed, though an output schema already exists so this is supplementary rather than load-bearing.

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 first sentence names a specific verb and resource ('Create a signed URL that a single PDF can be POST-uploaded to') and explicitly ties it to the downstream sibling create-document-from-pdf-upload. An agent immediately understands this is a pre-upload handshake step, not the document creation itself.

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?

The 'Use this tool when' block states the triggering condition, and the following paragraph states an explicit exclusion: if the agent cannot send HTTP requests with the file contents, it must not call this tool and should instead direct the user to upload in the fynk app. It also states the cardinality rule (once per PDF) that prevents reuse mistakes.

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