Skip to main content
Glama

Change an upload

update_upload
Idempotent

Change the visibility, title or description of one of your uploads. Only the fields you pass change; an empty string clears a title or description. Making an upload public lists it on the site.

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": {
      "id": "<id>"
    },
    "name": "update_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe upload id (from upload_image or list_uploads).
titleNoNew title (up to 90 characters); empty string clears it.
visibilityNounlisted (default): file and page work for anyone with the link, not listed. private: file only - the page link sends everyone but the owner to the file. public: listed on the site and indexable.
descriptionNoNew description (up to 500 characters); empty string clears it.

Output Schema

NameRequiredDescriptionDefault
idYesUnique identifier for this upload. Pass to get_upload / update_upload / delete_upload.
srcYesPermanent direct/embeddable file URL - use this for <img>/<video> src attributes and when saving the link.
pathYesStorage URL of the file as uploaded. It can change shortly afterwards when the file is converted (WebP/MP4) - store `src` instead.
sizeNoFile size in bytes as stored.
typeYes
thumbNo280px wide WebP thumbnail (for a video, its first frame), or null.
titleNoTitle, or null.
widthNoWidth in pixels, or null if unknown.
directYesThe shareable page URL (title, description, comments, share buttons). Despite the field name, this is NOT a direct file link - use `src` for that.
heightNoHeight in pixels, or null if unknown.
lockedNoTrue if the upload is password-protected.
created_atNoISO 8601 upload timestamp.
expires_atYesISO 8601 auto-delete timestamp, or null if the upload never expires.
visibilityNoprivate: file only, no page for others. unlisted: file and page work for anyone with the link. public: listed on the site.
descriptionNoDescription, or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnly=false, destructive=false, idempotent=true, and openWorld=true, so safety basics are covered. The description adds real value beyond that: the partial-update merge semantics, the empty-string-to-clear convention, and the side effect that making an upload public lists it on the site and makes it indexable. It still omits permission/ownership requirements and what happens on an invalid id.

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, front-loaded with the scope, then the merge rule, then the notable public side effect. Every sentence adds information and nothing is redundant.

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 a fully described schema, an output schema, and rich annotations, the description only needs to cover merge semantics and side effects, which it does. The one gap is the ownership/permission prerequisite for editing 'one of your uploads', which an agent may need before attempting the call.

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 all four parameters, the enum values, and the length limits are already documented in the schema. The description reinforces the empty-string-clearing behavior and the consequence of 'public', but adds no parameter meaning the schema lacks, so the baseline of 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 ('Change') and resource ('one of your uploads') and enumerates exactly the mutable fields: visibility, title, description. That clearly separates it from delete_upload, get_upload, and upload_image, though it never names those alternatives explicitly.

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?

It conveys the key invocation rule for a partial update ('Only the fields you pass change; an empty string clears a title or description'), which tells the agent how to call it. It gives no explicit when-to-use/when-not guidance and never points at get_upload or delete_upload as alternatives for other operations.

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.