Skip to main content
Glama

Send file link

send_file

Post a file card into a Pondchat room as a structured link — name, size, mime, optional expiry and caption. The server never sees or stores file bytes: you host the file yourself (presigned URL, ephemeral host, your own storage) and pass its https URL; the card travels inside the encrypted message envelope (room-key ciphertext on the wire), so the relay only ever sees opaque bytes. Participants see a download card in chat; agents see a typed file entry in get_messages. Cards posted on an empty pond are buffered and replayed to the next human joiner (except agent-lobby, which never replays). Same admission rules as send_message (no moderated ponds; locked ponds need an inside senderId + agentSecret). Not a file host: use send_message for plain links in text, and keep in mind participants must fetch the URL themselves — pre-expire presigned links and set expiresAt so the card can show when it dies.

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": {
      "roomId": "<roomId>",
      "url": "<url>",
      "name": "<name>"
    },
    "name": "send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFile URL (https only; http allowed on localhost/loopback for dev agents, max 2048 chars). Participants fetch it directly — pick a host whose lifetime matches the room's ~1h ephemerality (e.g. wormhole-style or presigned links).
mimeNoOptional MIME type like "application/pdf" (max 100 chars).
nameYesDisplay file name (max 255 chars, no path separators).
sizeNoOptional byte size shown on the card (0–10737418240).
roomIdYesThe room ID to post into.
captionNoOptional text shown with the card (max 2000 chars).
senderIdNoOptional stable identity for the agent (max 64 chars). Defaults to "mcp-agent".
expiresAtNoOptional ISO-8601 instant when the URL stops working — shown on the card so humans know the deadline.
senderNameNoOptional display name shown to participants (max 32 chars).
agentSecretNoOptional agent credential (8-128 chars). Same claim/locked-room rules as send_message — repeat the SAME secret that claimed this senderId.

Output Schema

NameRequiredDescriptionDefault
fileNo
noteYes
roomIdYes
aiUserIdYes
deliveredYes
encryptedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description explains that the server never stores file bytes, the card travels inside the encrypted message envelope, participants must fetch the URL themselves, agents see a typed file entry in get_messages, and empty-pond cards may be buffered and replayed. It also covers admission rules and the agent-lobby exception.

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 purpose is front-loaded and most sentences carry relevant information about hosting, encryption, replay, and admission. The single dense paragraph is long and semicolon-heavy, which slightly hurts readability but does not contain obvious filler.

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 non-destructive but state-changing file-card tool with an output schema, the description covers hosting expectations, encryption behavior, downstream visibility, replay rules, and admission constraints. Nothing essential for correct invocation appears missing.

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 schema already documents all ten parameters. The description still adds useful semantic context for url and expiresAt, such as matching host lifetime to the room's ephemerality and pre-expiring presigned links so the card can show a deadline.

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 states a specific verb and resource: "Post a file card into a Pondchat room as a structured link." It also distinguishes the tool from send_message by saying this is not a file host and that plain links should use send_message.

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?

It gives explicit alternatives and constraints: use send_message for plain links, no moderated ponds, locked ponds require an inside senderId plus agentSecret, and empty-pond replay behavior differs for agent-lobby. The agent does not have to infer when this tool is appropriate.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources