Skip to main content
Glama

Create Media Upload Url

aidelly_create_media_upload_url

Create a media record and a signed Supabase Storage URL that the client uploads raw bytes to with an HTTP PUT. Works only for clients with direct network access to Supabase storage, such as Claude Code or a local CLI. Browser-sandboxed chat clients (ChatGPT, Claude.ai) block that network egress, so the hosted server hides this tool from them; aidelly_upload_media uploads server-side instead. Retry-safe: a repeat call with the same idempotency_key returns the original result.

Input Schema

NameRequiredDescriptionDefault
bodyNoOptional body override for endpoints with sparse parameter schemas.
queryNoOptional query overrides for endpoints with sparse parameter schemas.
folderNo
brand_idNo
file_nameYes
file_sizeYesMaximum 2 GB.
content_typeYes
workspace_idNoWorkspace to operate in: the `id` of a workspace returned by aidelly_list_workspaces. Optional for read operations; required when creating content.
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / idempotency_key / example
      Added value: +"order-123:create-post:v1"
    • addedInput schema / properties / idempotency_key / maxLength
      Added value: +255
    • addedInput schema / properties / idempotency_key / minLength
      Added value: +1
    • addedInput schema / properties / idempotency_key / pattern
      Added value: +"^[\\x21-\\x7E]{1,255}$"
  2. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Workspace to operate in. Do not ask the user for this UUID — call aidelly_list_workspaces and use the `id` of the matching workspace. Optional for read operations; required when creating content."New value: +"Workspace to operate in: the `id` of a workspace returned by aidelly_list_workspaces. Optional for read operations; required when creating content."
  3. Changed1 schema field changed
    • changedInput schema / properties / file_size / description
      Previous value: -"Maximum 300 MB on Launch and 2 GB on Scale or Agency."New value: +"Maximum 2 GB."
  4. Changed2 schema fields changed
    • addedInput schema / properties / file_size / description
      Added value: +"Maximum 300 MB on Launch and 2 GB on Scale or Agency."
    • changedInput schema / properties / file_size / maximum
      Previous value: -524288000New value: +2147483648
  5. Changed1 schema field changed
    • addedInput schema / properties / workspace_id / description
      Added value: +"Workspace to operate in. Do not ask the user for this UUID — call aidelly_list_workspaces and use the `id` of the matching workspace. Optional for read operations; required when creating content."
  6. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds real context beyond the annotations: that the client must perform an HTTP PUT of raw bytes, that the tool is hidden from sandboxed clients, and that retries with the same idempotency_key return the original result. The retry-safety claim sits in mild tension with idempotentHint=false, so this is not a clean 5, but the disclosure is otherwise strong and not a flat contradiction.

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?

Five sentences, each load-bearing: purpose first, then eligibility, then the alternative, then retry semantics. No filler or restatement of the name.

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?

With no output schema, the agent still learns what is created, how the returned URL is used (PUT raw bytes), who may call it, and idempotency behavior. It stops short of describing the response shape or URL lifetime and does not fill the low-coverage parameter gaps, so it is not fully complete for a 9-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 44%, so the description is expected to compensate. It only references idempotency_key in passing and says nothing about folder, brand_id, content_type, file_name, or how workspace_id interacts with the required-args rule, leaving most parameters underexplained.

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 compound verb+resource: creating a media record plus a signed Supabase Storage upload URL. It immediately differentiates itself from the sibling aidelly_upload_media by name, so an agent can route between them without opening either schema.

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 an explicit eligibility condition (clients with direct network access to Supabase storage, e.g. Claude Code or a local CLI) and an explicit when-not (browser-sandboxed chat clients block egress), then names the alternative tool for that case. This is exactly the when/when-not/alternative pattern.

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.