Skip to main content
Glama

file_upload_ticket

Creates a short-lived, token-free URL plus the exact curl command so a local file of any size uploads straight from the machine that holds it, keeping bytes out of the chat.

Instructions

Upload a LOCAL file of any size (video, dataset, spreadsheet, archive) without its bytes passing through this conversation. Returns a short-lived, credential-free URL plus the exact curl line to run: curl -T <local-file> <url>. The destination is fixed by this call, the URL accepts exactly one upload and needs NO token, so an agent without filex credentials can still finish the transfer. Use this whenever the file is already on disk - never base64 it into file_write. Run the returned line on the machine that HOLDS the file (a powershell variant is returned too); if you cannot run commands at all, hand the line to the user. Confirm the result with file_info afterwards.

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": {
      "path": "<path>"
    },
    "name": "file_upload_ticket"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesadapter://file path the upload will land at (a FILE path, not a folder)
max_bytesNooptional lower ceiling than the server maximum
allow_plaintextNoonly for a path inside an end-to-end encrypted folder: store the upload there UNENCRYPTED on purpose. Without it the ticket is refused with E2E_PLAINTEXT_REFUSED
expires_in_secondsNohow long the URL stays valid (default 1800, max 86400)

Output Schema

NameRequiredDescriptionDefault
urlYes
curlYes
nextYes
pathYes
max_bytesYes
expires_atYes
powershellYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: destination fixed at ticket-creation time, single-use URL, short-lived, no credential required, and bytes never traverse the conversation. That security/lifecycle model is exactly what an agent needs before committing to this path and is not derivable from the schema.

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?

Front-loaded with the capability and the returned artifact, then successive sentences handle the security model, the execution location, and the fallback. Every sentence is actionable; nothing is repeated from the schema.

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?

An output schema exists, so return values need not be detailed, yet the description still names the URL and the exact command shape. With the E2E plaintext refusal already covered in the schema, this definition covers the full operating loop: create ticket, run line, verify with file_info.

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 meaning by stressing that 'the destination is fixed by this call' and that `path` is a file path where the upload will land, which clarifies the ticket/upload split. It says nothing extra about max_bytes, allow_plaintext, or expires_in_seconds beyond the schema text.

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 (upload a local file of any size, listing the kinds of files) and immediately distinguishes itself from the sibling it is most likely to be confused with: 'never base64 it into file_write'. The agent knows both what it does and what it is not for.

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 trigger ('whenever the file is already on disk'), explicit anti-pattern (do not base64 into file_write), and explicit fallbacks for two failure modes: run the line on the machine that holds the file, or hand the line to the user if commands cannot be run. It even names the follow-up step (confirm with file_info).

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