Skip to main content
Glama

Open a resumable file transfer

file_transfer_open

Start a chunked file transfer session for upload or download. Provides a resume cursor that survives server restarts, with optional sha256 and size verification at commit.

Instructions

Open a chunked upload or download session. Upload: send chunks with file_transfer_write starting at offset 0, then file_transfer_commit. Download: fetch chunks with file_transfer_read until eof. Sessions survive server restarts — resume at the reported nextOffset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesServer-side destination (upload) or source (download) path.
sizeNoUpload: expected byte size, verified at commit.
sha256NoUpload: expected hex sha256, verified at commit.
directionYes
Behavior4/5

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

With no annotations, the description carries the burden, and it discloses a key behavioral trait: 'Sessions survive server restarts — resume at the reported nextOffset.' It also clarifies the upload/download protocol. It would be stronger with cleanup or session-identity details, but the disclosed persistence is genuinely useful.

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?

Three short sentences with no fluff; the most important scoping ('chunked upload or download session') is front-loaded, and the protocol details are organized by direction. Every sentence adds information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The lifecycle (open → write/read → commit/EOF) is described and persistence is noted, but there is no output schema and the description does not specify what open returns beyond a reported nextOffset—no session/handle identifier is mentioned. It also omits any cleanup/cancel path, so an agent may not have everything needed to invoke this correctly in all cases.

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 75%, and the description compensates by mapping direction to concrete workflows: upload starts at offset 0 and ends with commit, download reads until eof. It also clarifies that resumption uses a reported nextOffset. Size and sha256 remain at schema level, but their schema descriptions are already adequate.

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 description uses a specific verb ('Open') and names the resource: a chunked upload or download session. It differentiates itself from siblings by situating the tool at the start of a clear workflow: upload via file_transfer_write then file_transfer_commit, download via file_transfer_read until eof.

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?

It gives concrete usage context for both directions, explicitly naming sibling tools in sequence and telling the agent to start at offset 0 or read until eof. It does not explicitly state when not to use this tool or mention alternatives like file_transfer_status, so it falls short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ljppanda/mcp-longjobs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server