Skip to main content
Glama

Get an upload link

talonic_request_upload

Create a browser upload link for files that can't be attached to a tool call or exceed argument size limits. Returns the link plus a pre-allocated document_id for polling and later extraction.

Instructions

Get a browser upload link the user opens to add a file to their workspace. Returns the link plus a pre-allocated document_id.

USE WHEN: the user wants to upload a document and you cannot pass it directly: the client cannot attach file bytes to a tool call, or the file is too large for tool-call arguments. NOT FOR: a document already in the workspace (use its document_id) · a file already on a public URL (use file_url on talonic_extract). ARGS: filename (with extension); optional account (company name or id from talonic_list_accounts) so the file stays with that company; optional add_to_workspace (true = process it fully into workspace data for later questions and SQL; default false = text only, for a following talonic_extract). RETURNS: upload_url, document_id, expires_at. After the user uploads, poll talonic_get_document on that document_id until status is 'completed' (or 'extracted' when add_to_workspace is false), then call talonic_extract if you need fields. If status becomes ocr_failed, extraction_failed, or error, stop polling and report the failure to the user.

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": {
      "filename": "<filename>"
    },
    "name": "talonic_request_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoCompany (account) the file belongs to: its name, alias or id. See talonic_list_accounts / talonic_create_account.
filenameYesThe name of the file being uploaded, including extension (e.g. 'invoice.pdf'). Used to pre-allocate the document and infer MIME type.
add_to_workspaceNotrue: process fully so the file becomes workspace data (questions, SQL, registry). false (default): text only, for a one-off talonic_extract.

Output Schema

NameRequiredDescriptionDefault
expires_atYesISO 8601 timestamp when the upload link expires.
upload_urlYesURL the user should open in their browser to drop the file.
document_idYesThe pre-allocated document ID. Use with talonic_get_document to poll status, and with talonic_extract once uploaded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.94
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "Company (account) the file belongs to: its name, alias or id. See talonic_list_accounts / talonic_create_account.",
      +  "maxLength": 255,
      +  "type": "string"
      +}
    • addedInput schema / properties / add_to_workspace
      Added value: +{
      +  "description": "true: process fully so the file becomes workspace data (questions, SQL, registry). false (default): text only, for a one-off talonic_extract.",
      +  "type": "boolean"
      +}
  2. Addedv0.1.45

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false; the description goes well beyond by disclosing that a document record is pre-allocated, that the link expires (expires_at), and by prescribing a polling protocol against talonic_get_document with named terminal and failure statuses (completed, extracted, ocr_failed, extraction_failed, error). It also explains the side effect of add_to_workspace on downstream data availability.

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?

Well structured and front-loaded with labeled USE WHEN / NOT FOR / ARGS / RETURNS sections, and the critical constraint appears in the first sentence. The ARGS block partially restates schema descriptions, which is the only redundancy, but the added downstream implications justify most of it.

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 multi-step workflow tool this covers everything an agent needs: how to obtain the link, what comes back, what the user must do, how to poll, which statuses are terminal, and when to stop and report failure. An output schema exists, yet the description still supplies the sequencing logic that the schema cannot express.

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; the description still adds value by explaining the intent behind account ('so the file stays with that company') and the downstream consequence of add_to_workspace (full workspace processing vs. text only for a following talonic_extract). It does not add format or validation detail beyond the schema, so it stops short of 5.

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 browser upload link the user opens to add a file to their workspace') and immediately clarifies the return payload (link plus pre-allocated document_id). It is clearly distinguishable from talonic_extract and talonic_get_document, which are named as the downstream/alternative paths.

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?

Explicit USE WHEN condition ('you cannot pass it directly: the client cannot attach file bytes... or the file is too large') and an explicit NOT FOR section routing to document_id reuse and to file_url on talonic_extract. This is the strongest form of when/when-not guidance.

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