Skip to main content
Glama

Create Upload URL

create-upload-url

Get a short-lived signed URL to PUT a file body to (max 10 MB, pdf/doc/docx/xlsx/pptx/jpg/jpeg/png/gif/webp). Then call upload-file with the returned upload_id to finish. Use upload-file directly with base64 when you can.

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": "create-upload-url"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesThe file name with its extension, e.g. "brief.pdf". Allowed extensions: pdf, doc, docx, xlsx, pptx, jpg, png, gif, webp, jpeg.

Output Schema

NameRequiredDescriptionDefault
urlYes
headersYes
upload_idYes
expires_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/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), so the description adds the substantive behavior: the URL is short-lived, the payload is capped at 10 MB, and the call is only step one of a two-step flow requiring a follow-up. It does not cover expiry handling or what happens if the PUT exceeds the limit, which keeps it below a 5.

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?

Three short sentences with zero filler: capability and constraints first, required next step second, preferred alternative last. Every sentence carries information an agent needs to act.

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?

For a one-parameter tool with an output schema (so return values needn't be described), the description covers size limits, accepted types, the upload_id handoff, and when to skip this tool entirely. Nothing needed to call it correctly is missing.

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% and the single filename parameter is fully documented in the schema, including the allowed extension list. The description adds the 10 MB size constraint, which is not in the schema, but repeats the extension list already present in the parameter description rather than extending it.

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 specific verb and resource ('Get a short-lived signed URL to PUT a file body to') and immediately scopes it with a size cap and allowed content types. It is clearly distinguished from the sibling upload-file, which is named explicitly as the completion step.

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?

Gives explicit sequencing ('Then call upload-file with the returned upload_id to finish') and an explicit alternative with the condition that selects it ('Use upload-file directly with base64 when you can'). An agent knows both the happy path and the preferred shortcut without 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.