Skip to main content
Glama

Start file upload

request_upload_url

get a signed url to upload a local file (image, video, or audio) for use in generation tools. PUT the file bytes to upload_url with Content-Length set to exactly size_bytes, then pass download_url to generation tools.

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": {
      "filename": "<filename>"
    },
    "name": "request_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesoriginal filename (used to determine file type)
size_bytesNoexact file size in bytes (required - the upload PUT must match it exactly)
content_typeNomime type (e.g., image/jpeg, video/mp4). if not provided, inferred from filename

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already establish this is a non-destructive, non-open-world state-creating call, so the description's marginal burden is low. It does add real operational behavior: the two-step protocol (obtain URL, then PUT with Content-Length exactly equal to size_bytes) and the expectation that a download_url is returned for later tools. It omits signed-URL expiry, size limits, and failure modes, which matter for a signed upload flow.

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?

Two compact sentences, front-loaded with the purpose and followed by the mechanics. Nothing is padding, though the second sentence packs multiple instructions and could be broken for scannability.

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?

With no output schema, the description compensates by naming the returned artifacts (upload_url, download_url) and explaining how each is used, covering the full lifecycle of this tool. Combined with complete schema coverage and annotations, an agent has what it needs to invoke it correctly.

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 the baseline is 3. The description's mention of size_bytes exactness largely restates what the schema already declares, and content_type/filename inference is likewise already documented in the schema; it adds little new parameter meaning.

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?

States a specific verb+resource ('get a signed url to upload a local file') and scopes the accepted media types (image, video, audio) plus the downstream purpose ('for use in generation tools'). It does not name or distinguish itself from plausible siblings like upload_file or confirm_upload, so an agent must infer the difference; that keeps it below 5.

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?

Gives clear usage context: upload a LOCAL file when the file needs to be consumed by generation tools, and spells out the follow-up sequence (PUT bytes, then pass download_url onward). It never states when to prefer a different upload path over this one, so exclusions/alternatives are absent.

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