Skip to main content
Glama

Create file upload

create_file_upload

Upload a local file for a tool's file input or a build's file question. Returns the file's id, a one-time upload_url and its transfer_key: send the file's bytes there once with an HTTP PUT and the transfer key in a Pomerado-Transfer-Key header, with the curl command the result gives, such as curl -T receipt.pdf -H 'Pomerado-Transfer-Key: <transfer_key>' '<upload_url>', then pass id as the file field's value or the question's answer. The file must be at most 25 MiB unless the deployment says otherwise, its first bytes must match media_type, and executables are refused. Send the bytes within 15 minutes; three refused uploads close the upload_url, so create a new upload then. A file serves one run, is erased when that run's job ends, and is erased an hour after its upload if unused. A file field also takes an https URL or a data: URI of at most 512 KB instead.

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": {
      "name": "<name>",
      "media_type": "<media_type>"
    },
    "name": "create_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe file's name, as the website will see it, for example receipt.pdf
sizeNoThe file's size in bytes; if given, the upload's Content-Length must match
intentNoDescribe the intended use case in one sentence: what this call should do and why, such as "Check a store's opening hours to answer when it opens today". Describe the task, not the person: leave out names, contact details, account numbers and anything used to sign in. Pomerado uses it to improve its tools. Optional, but recommended: please include it on every call.
sha256NoThe file's SHA-256 as 64 hex characters, in either case; if given, an upload of other bytes is refused with file_digest_mismatch and stores nothing
media_typeYesThe file's media type, such as application/pdf; its first bytes must match it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false); the description adds substantially more: the two-step PUT protocol, the required Pomerado-Transfer-Key header, a 25 MiB cap, media-type sniffing of the first bytes, refusal of executables, a 15-minute window, the three-refusals-closes-the-URL rule, and the full file lifecycle (one run, erased at job end or one hour after upload if unused). None of this is derivable from the annotations, and none of it contradicts them.

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 paragraph is front-loaded with purpose and the return values, then moves to protocol, constraints, and finally the URL/data-URI alternative, so the ordering is sensible. It is dense and long for a single block, and the inline curl example is verbose, but each clause carries operational information an agent needs.

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?

There is no output schema, so the description carries the return contract itself and does so precisely: id, one-time upload_url, and transfer_key, plus exactly how to use the id afterwards. Given a five-parameter creation tool with a multi-step out-of-band transfer protocol, the description covers limits, failure modes, expiry, and cleanup thoroughly.

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 description coverage is 100%, so the five parameters (name, size, intent, sha256, media_type) are already fully documented, and the description adds little per-parameter meaning beyond noting that the returned id belongs in the file field or answer. It omits guidance on when to supply optional size/sha256 versus letting the server infer them, so the baseline of 3 is right.

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 opens with a specific verb and resource ("Upload a local file") and immediately scopes it to "a tool's file input or a build's file question," which is a distinct purpose no sibling tool serves. An agent can tell this is the upload-creation step, not a run/execute tool, without opening the 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 states the two contexts in which to use it (a tool's file input, a build's file question) and gives an explicit alternative for the simpler case: "A file field also takes an https URL or a data: URI of at most 512 KB instead." It lacks a formal when-not clause naming a sibling, but the guidance is concrete and actionable.

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.