Skip to main content
Glama
@cmssy/mcp-server

@cmssy/mcp-server

Official

Upload media

upload_media

Upload a local file or remote URL to the workspace media library and receive the stored asset URL for use in block content and record media fields.

Instructions

Upload a file to the workspace media library from a local path or a remote URL (max 50MB; images, video, audio, PDF and common office documents). Returns the stored asset whose url can be used in block content and record media fields.

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

Input Schema

NameRequiredDescriptionDefault
altNoAlt text for the asset
urlNoRemote URL whose content is fetched client-side and uploaded
tagsNo
filePathNoLocal file path to upload, resolved on the machine running the MCP server
filenameNoStored filename (defaults to the source's basename)
folderIdNoMedia folder id to file the asset under

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.73.2
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.73.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds real behavioral context on top — a 50MB size ceiling, the accepted file types, and the fact that the response is a stored asset with a reusable `url`. It does not cover collision/overwrite behavior when a filename already exists, or any permission requirements, which are the main remaining unknowns for a write operation.

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?

Two sentences, both load-bearing: the first covers action, sources, size limit, and file types; the second covers the return value and its downstream use. Constraints are front-loaded and nothing is repeated from the schema verbatim.

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 description correctly compensates by describing the returned asset and its `url`. Combined with the size and type constraints, an agent has enough to invoke it correctly, though overwrite semantics and the required-one-of-source rule remain unspecified.

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 83%, so the schema already documents alt, url, filePath, filename, and folderId in detail. The description only reinforces the local-path-vs-remote-URL distinction and does not resolve the notable ambiguity that neither source parameter is required, nor does it explain filename defaulting or tag behavior beyond what the schema says. Baseline 3 is appropriate.

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 ("Upload a file to the workspace media library") plus the two source modes (local path or remote URL), so it is immediately distinguishable from siblings like list_media, delete_media, and create_media_folder. An agent knows exactly what the tool does without opening the schema.

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?

The description makes the usage context clear: it is the ingestion step for the media library, and the returned `url` feeds block content and record media fields, which tells the agent where this tool sits in a workflow. It stops short of explicit when-not-to-use guidance or naming alternatives (e.g., folder creation or listing), so no exclusions are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools