Skip to main content
Glama

Get upload URL

get_upload_url
Read-only

A signed URL (valid 15 minutes) to upload local files to a workspace from a shell, without sending them through the conversation: curl -F file=@ref.png (several -F file=@… at once; 10 MB per file, 40 MB per request, enough for full-resolution iPad and desktop screenshots). The files go to fileId's workspace when given (pass the file you will use them in), else to workspace, else to the default workspace. The JSON response gives each asset's url (/api/assets/…), for or as a reference image. The files never go through the conversation, where base64 costs thousands of tokens.

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": "get_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdNoThe file the assets are for: its workspace's (a file shows the fonts and images of its own workspace).
workspaceNoThe workspace whose assets to use: its id or name (whoami lists them). Default: fileId's workspace, else the default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare this a safe, non-open read; the description adds the behavior that actually matters: the 15-minute expiry, the 10 MB per file / 40 MB per request caps, the workspace resolution order, and that the JSON response yields `/api/assets/…` URLs usable in `<img src>` or as reference images. Nothing here contradicts readOnlyHint=true, since the call itself only mints a URL.

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 most important fact — signed URL, 15 minutes — is front-loaded, and the curl example plus limits are efficiently packed. The closing clause about base64 costing thousands of tokens repeats the earlier 'never go through the conversation' point and could be cut.

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, yet the description explains the response shape (per-asset `/api/assets/…` URLs) and their intended use. Combined with expiry, size limits and workspace precedence, an agent has everything needed to call this correctly.

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 100%, so the parameters are already documented. The description still adds decision guidance beyond the schema: 'pass the file you will use them in' for fileId, and the explicit fallback chain fileId's workspace → workspace → default workspace.

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: returns a signed URL valid 15 minutes for uploading local files to a workspace from a shell. It also draws the key distinction against the in-conversation path (base64 attachments), so an agent can tell which route it wants.

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 concrete usage context — call it when files live on disk and should go straight to a workspace via `curl -F file=@ref.png <url>` rather than through the conversation. It does not explicitly name or exclude a sibling tool such as upload_asset, so the routing is implied rather than stated.

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.