Skip to main content
Glama

Send File in Session

srift_send_file

Offers a local file to the connected peer inside an existing approved session; the peer accepts it, and you get a fileId to monitor progress.

Instructions

Only inside an already-open session with an approved peer; to simply send or share a file with someone, use srift_quick_share instead. Offers a file to the connected peer in the existing session. The peer must accept with srift_accept_transfer. Returns a fileId for monitoring. Transport is auto-selected internally.

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": {
      "filePath": "<filePath>"
    },
    "name": "srift_send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesAbsolute path to the file on local disk

Output Schema

NameRequiredDescriptionDefault
fileIdNoUnique identifier for the offered file transfer
fileNameNoBase filename of the offered file
fileSizeNoSize of file in bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the acceptance handshake, the fileId returned for monitoring, and that transport is chosen internally. What is left unstated are edge behaviors such as offer expiry, what happens on rejection, and any file size limits. The annotations already cover the safety profile (openWorldHint=true, idempotentHint=false), so this is a strong additive disclosure.

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?

The gating condition and the sibling alternative are correctly front-loaded, and every sentence carries information. There is mild redundancy between "inside an already-open session" and "in the existing session," which could be tightened.

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?

For a one-parameter tool with an output schema already documenting the return, the description covers the essential flow: precondition, handshake, and short-lived return value. It stops short of failure modes and limits, which is a minor gap at this complexity.

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?

There is a single parameter with 100% schema description coverage, and the schema already says "Absolute path to the file on local disk." The description adds no further meaning such as path restrictions, relative-path rejection, or size constraints, so the baseline of 3 applies.

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?

A specific verb and resource ("Offers a file to the connected peer") scoped to an existing session. It explicitly separates itself from srift_quick_share, so an agent can route between the two without inspecting either schema.

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?

States the precondition ("Only inside an already-open session with an approved peer") and names the alternative for the common case ("to simply send or share a file with someone, use srift_quick_share instead"). It also points to the required follow-up step, srift_accept_transfer, giving a complete when/when-not picture.

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