Skip to main content
Glama

Open an upload for a file to send

create_attachment_upload

Opens an address to send a file to, so that a message can attach it without carrying it. Answers with an upload_id and an upload_url: PUT the bytes to that address in one request (no key, nothing to sign, for example curl -T report.pdf "<upload_url>"), then pass {"upload_id": "..."} in the "attachments" of send_email, reply_to_conversation, forward_conversation or approve_draft. This is the way to attach a real document: the inline base64 form asks you to write the whole file out yourself, which a PDF of a few pages overruns. One file per upload, good for one PUT, and it keeps for a day.

Input Schema

NameRequiredDescriptionDefault
filenameYesThe name the recipient will see, extension included. It is fixed here: the message that attaches the file does not rename it.
content_typeNoThe media type, for example "application/pdf". Left out, it is read from the bytes when they arrive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

No annotations, yet the description carries the full burden well: one file per upload, single PUT only, no key/signing needed with a curl example, and a one-day lifetime. It also explains the return shape (upload_id + upload_url) since there is no output schema.

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?

Front-loaded with the core action and the return contract, then the rationale and the curl example. Slightly long but nearly every sentence adds operational value; minor trimming possible.

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?

Despite no output schema and no annotations, the description fully covers the two-step flow, the returned identifiers, the one-PUT/one-file/one-day constraints, and how to hand off to sending tools. An agent can invoke it correctly from this alone.

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 coverage is 100%, so both filename and content_type are already documented; the description largely restates the fixed-filename rule and adds little new about these two parameters. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

States a concrete verb+resource ('opens an address to send a file to') plus the mechanism (upload_url + upload_id). Distinguishes itself from the inline base64 attachment path and from the sending siblings.

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?

Explicitly says when to use it (attaching a real document, since base64 overruns for multi-page PDFs) and names the exact siblings that consume the upload_id (send_email, reply_to_conversation, forward_conversation, approve_draft). Nothing left to inference.

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