Skip to main content
Glama

SendForMe

Upload a PDF or photo

upload_file

For the user's own PDF (to mail as is) or attachments (evidence, photos). Returns file_id and a one-time upload_url: PUT the raw bytes there (e.g. curl -T ./letter.pdf "<upload_url>"), then pass file_id as pdf or in attachments. Small files can instead be passed as base64 directly in pdf/attachments, and public files as an https URL. PDF, PNG or JPEG, up to 25 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
account_keyNoOnly for clients without OAuth: a saved sfm_ key. Leave out when connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only declare this is a non-read-only, non-destructive, non-idempotent, closed-world write), the description explains the two-step flow: it returns a file_id plus a one-time upload_url that must be PUT with raw bytes, with a concrete curl example. It also discloses format limits (PDF, PNG, JPEG) and a 25 MB size cap, and that the key parameter is only needed for non-OAuth clients — all genuine behavioral context absent from annotations.

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?

Roughly four dense sentences, all of which carry actionable information: purpose, return values, upload mechanics, and limits. The heavy parenthetical stacking ('(evidence, photos)' and the curl example inline) makes it a bit crammed, but there is no filler to cut.

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 two-parameter write tool with no output schema, the description covers what is returned (file_id and one-time upload_url), how to complete the upload, accepted formats and size ceiling, and the auth caveat. The only real gap is the undocumented filename parameter and the slightly ambiguous reference to pdf/attachments as if they were inputs here.

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?

With schema coverage at 50%, the description compensates for account_key (echoing that it is only for clients without OAuth) but never explains the filename parameter. It spends words on how the returned file_id is consumed as 'pdf or in attachments', which are inputs of sibling tools rather than this schema's parameters, so meaningful guidance maps only partly onto the actual inputs.

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 names a specific action and resource ('Upload a PDF or photo', 'the user's own PDF (to mail as is) or attachments') and distinguishes the two use cases (document to be mailed vs. supporting evidence). An agent can tell this apart from siblings like send_letter or preview_letter without opening any schema.

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

Usage Guidelines4/5

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

It gives clear context for use — user-supplied PDFs to mail as-is, or attachments such as evidence and photos — and names alternatives for input (base64 inline for small files, https URL for public files). It stops short of stating when not to use this tool versus other upload/preview paths, so it is clear but not exhaustive.

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