Skip to main content
Glama

Create an upload URL

create_upload_url

A one-time URL to upload a file straight to storage (PUT the raw bytes; valid 30 minutes): a reference image (kind image, purpose reference) for the reference_asset_ids of generate_character_sheet and friends. Voice recordings are not accepted. Returns the asset id the file will have.

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": {
      "kind": "<kind>",
      "purpose": "<purpose>"
    },
    "name": "create_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesType of file to upload: image, audio or video.
bytesNoFile size, to fail early when too large
labelNoOptional short name shown for the uploaded file.
purposeYesWhat the file is for; "reference" makes it a reference picture for generation.
drama_idNoThe drama id (drm_…), from list_dramas or create_drama.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only mark this as a non-read-only, non-destructive, closed-world call. The description adds real behavioral detail beyond that: the URL is one-time, the upload is a raw-byte PUT rather than multipart, the link expires in 30 minutes, and it returns the future asset id. Permission or auth requirements are unstated.

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?

Front-loaded with the core action and packed with just the details an agent needs, but the single parenthetical sentence is dense and the 'kind image, purpose reference' fragment is grammatically loose.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no elaboration. For a five-parameter tool that hands back a presigned URL, the description covers method, lifetime, and intended consumer, though it never addresses the drama_id scoping or size limits.

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 all five parameters are already documented. The description only reinforces the image+reference combination that maps to required params; bytes, label, and drama_id get no added meaning.

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 outcome: a one-time URL that lets the caller PUT raw file bytes straight to storage, and names the downstream consumer (reference_asset_ids of generate_character_sheet). This clearly separates it from the generation siblings that consume the resulting asset id.

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 context for use (getting a reference image for generate_character_sheet and friends) plus an explicit exclusion (voice recordings are not accepted). It does not explain when a non-reference upload or the audio/video kinds would be appropriate, so the routing is clear only for the main case.

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.