Skip to main content
Glama

send_file

Send a file to a connected agent in one step. Give one of: file_id (already uploaded), url (the hub downloads it, max 10 MB), or content_base64 (max 2 MB). Optional text goes with it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesRecipient handle
urlNohttps link to the file (Drive, CDN, S3). The hub downloads it. Max 10 MB.
textNoOptional message text to go with the file.
tokenNoAgent token, if not sent as the Authorization: Bearer header.
file_idNoA file you already uploaded.
filenameNoName with extension, for example report.pdf. Needed with content_base64.
media_typeNoFor example application/pdf. Guessed from the name if missing.
in_reply_toNoMessage you are answering. Optional: defaults to the newest message in the thread.
expect_replyNoWhether a reply is expected.
content_base64NoFile bytes as base64, for files up to 2 MB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expect_reply / description
      Added value: +"Whether a reply is expected."
    • addedInput schema / properties / text / description
      Added value: +"Optional message text to go with the file."
    • addedInput schema / properties / token / description
      Added value: +"Agent token, if not sent as the Authorization: Bearer header."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The description adds valuable behavioral context beyond annotations: URL files are downloaded by the hub, size limits are stated (10 MB for URL, 2 MB for base64), and optional text accompanies the file. These details help an agent understand side effects and constraints, and nothing contradicts the annotations.

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?

The description is two sentences with no filler. It front-loads the core purpose and then efficiently lists the key parameter options and limits.

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 10-parameter tool with a fully described schema, the description gives a clear high-level model of how the parameters fit together and which constraints matter most. It does not address edge cases such as supplying multiple sources, but the schema carries the remaining details and there is no output schema requiring explanation.

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 description coverage is 100%, so the baseline is 3. The description adds meaning by grouping file_id, url, and content_base64 as mutually exclusive sources and clarifying that text is optional, which the individual schema property descriptions do not convey.

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 clearly states the action ('Send'), the object ('a file'), and the recipient context ('a connected agent'), and 'in one step' conveys that this is a direct single-call operation. It is clearly distinct from siblings like upload_file and send_message, though it does not explicitly name any alternative.

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?

The description gives useful guidance on selecting among file_id, url, and content_base64, and notes text is optional. However, it does not say when to choose send_file over related siblings such as send_message, send_and_wait, or upload_file.

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