Skip to main content
Glama

Accept File Transfer

srift_accept_transfer
Idempotent

Accept a pending peer file offer and start downloading it to an optional save directory by supplying the fileId from the transfer list.

Instructions

Accept a pending file offer from the peer and start downloading it. Get the fileId from srift_list_transfers (offers show as pending).

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": {
      "fileId": "<fileId>"
    },
    "name": "srift_accept_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesfileId from the inbound file_offer event or transfer list
saveDirNoAbsolute path to destination directory (defaults to CWD)

Output Schema

NameRequiredDescriptionDefault
fileIdNoAccepted transfer ID
saveDirNoDestination directory path
successNoTrue if transfer acceptance started successfully

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare it is a non-read-only, open-world, idempotent, non-destructive operation, so the safety profile is carried. The description adds that it kicks off a download and requires a pending offer, but says nothing about failure modes (expired offer), whether files can be overwritten in saveDir, or the transfer lifecycle, which would be the valuable extra context here.

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?

Two short sentences, action first and the input-provenance hint second; no filler and nothing buried.

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 and rich annotations covering both parameters, the definition only needs purpose, precondition and input source, all of which are present. It is slightly thin on post-invocation behaviour (download location resolution, expired-offer handling) but adequate to invoke correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so fileId and saveDir are already documented, and the description only reinforces where fileId originates. The note that offers appear as pending adds a small interpretive cue, which matches the baseline 3 when the schema does the heavy lifting.

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?

The description gives a specific verb plus resource ('Accept a pending file offer from the peer') and adds the consequence ('start downloading it'), so the action is unambiguous. It points at srift_list_transfers only as the source of the fileId rather than explicitly contrasting behaviour with a sibling, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is clear prerequisite guidance: the offer must be pending and the fileId comes from srift_list_transfers (or the inbound file_offer event per the schema). However, it never states when not to use it, what to do if the offer has expired, or how to decline, so usage is implied rather than fully framed.

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