Skip to main content
Glama

get_upload_url

Upload without the upload widget, only when you can send HTTP requests with the file's bytes yourself (e.g. from a shell); in a chat, show the upload widget instead. Step 1: get a presigned URL. PUT the raw file bytes to it (not multipart) with the same Content-Type, then call confirm_upload. The URL expires in 1 hour.

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": {
      "contentType": "<contentType>",
      "size": "<size>"
    },
    "name": "get_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYesExact file size in bytes; the upload is rejected if it differs
contentTypeYes

Output Schema

NameRequiredDescriptionDefault
filePathYesPass to confirm_upload
uploadUrlYesPUT the raw file bytes here with the same Content-Type header, then call confirm_upload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond annotations, it discloses the presigned-URL workflow, requires a raw-byte PUT rather than multipart, mandates matching Content-Type, notes a one-hour expiry, and routes to confirm_upload. These are behaviorally important details not captured by 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?

It is compact and front-loaded: usage constraint, step sequence, PUT details, and expiry appear in a logical order. Every sentence contributes operational guidance.

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?

Because an output schema exists, the description need not explain the return value; for a two-parameter workflow tool it supplies the critical upload mechanics, expiry, and next tool. The enum and size details are already in the schema, so remaining omissions are minor.

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 coverage is 50%; the schema already documents size constraints and enumerates content types, while the description adds the important runtime requirement that the PUT must use the same Content-Type. It does not add much about the size parameter beyond the schema, so it is strong but not exhaustive.

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 the exact resource—a presigned upload URL—and frames it as Step 1 of an upload flow. It explicitly contrasts this tool with the upload widget and directs the subsequent call to confirm_upload, so it is distinguishable from 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?

It gives a clear when-to-use rule: only when the caller can send raw bytes over HTTP, otherwise use show_upload_widget in chat. It also provides the required next step and HTTP method, leaving little 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