Skip to main content
Glama

create_upload_url

Get a pre-signed URL to upload a file (avatar, demo video, music, etc). Creates an Asset record.

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>",
      "type": "<type>"
    },
    "name": "create_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesAsset type
titleNoDisplay title for the asset
fileNameYesOriginal file name with extension
fileSizeNoFile size in bytes
mimeTypeNoMIME type (auto-detected if omitted)
productIdNoLegacy name for workspaceId
workspaceIdNoWorkspace (product/brand) id from list_workspaces. Omit to use the default workspace (set_default_workspace), else the newest one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / productId / description
      Previous value: -"Link to a product"New value: +"Legacy name for workspaceId"
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "Workspace (product/brand) id from list_workspaces. Omit to use the default workspace (set_default_workspace), else the newest one.",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key non-obvious fact that this is effectively a write operation ('Creates an Asset record') despite the 'Get' verb. It omits other relevant behavior: whether the Asset exists before upload completes, URL expiry, required request headers, or whether authentication is needed for the upload itself.

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 short, front-loaded sentences with no filler. Brevity is good, but the second sentence is terse to the point of under-specifying the relationship between the URL and the created Asset.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should say what comes back (presigned URL, asset id, required upload method/headers) and it does not. For a seven-parameter tool with a side effect and a multi-step upload workflow, the definition covers the gist but leaves the caller to infer the critical mechanics.

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 schema already documents all seven parameters including the enum and the workspaceId defaulting rule. The description adds nothing about parameters beyond restating example asset categories that the enum already covers, so baseline 3 applies.

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?

The description names a specific verb and resource ('Get a pre-signed URL to upload a file') and adds the important side effect ('Creates an Asset record'). It is clear what the tool does, though it does not explicitly contrast itself with generation siblings such as generate_image or generate_video.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the phrase 'to upload a file (avatar, demo video, music, etc)'. There is no statement of when to choose this over other creation tools, no exclusions, and no guidance on what to do after receiving the URL.

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