Skip to main content
Glama

Upload a file into a draft's field

media_upload_command
Read-onlyIdempotent

An image file (PNG, JPEG, WebP or SVG, up to 4 MB) or a clip (MP4 or MOV, up to 40 MB) is too big to send as a tool argument: this answers the exact HTTP request, and a curl command, that puts the file into one of the draft's image or clip fields, checked like any value. Run it from your shell with the file's path.

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>",
      "field": "<field>"
    },
    "name": "media_upload_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe draft's id (draftId).
fileNoThe file's path, to write it into the command (its extension says its type).
fieldYesAn image or video field (get_template lists them).
editTokenNoThe draft's editToken, to write it into the command (left out, the command has a placeholder).

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?

Annotations declare readOnlyHint=true, which would otherwise look odd for something called an upload; the description reconciles this by explaining the tool only produces an HTTP request/curl command that the agent must run itself. It also discloses concrete constraints beyond the annotations: accepted formats, a 4 MB image cap and a 40 MB clip cap, and that the value is 'checked like any value.' What it doesn't cover is failure behavior (rejected type, oversized file) or how the returned command is shaped.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nothing is padded, and the size/type constraint is front-loaded, but the first sentence is a convoluted run-on whose grammar ('this answers the exact HTTP request, and a curl command, that puts the file into...') forces a re-read to establish that the tool returns a command rather than performing the upload. The key mechanic deserves its own short sentence.

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?

For a command-generating tool with no output schema, the description covers what the agent most needs: why to use it, what it returns (an HTTP request and curl command), and how to execute it. The remaining gap is the return shape and error semantics, which matter more here because there is no output schema to fall back on.

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 are already documented, and the description largely restates them ('file's path,' 'the draft's image or clip fields'). It does add meaning for the file parameter by tying type to extension and imposing per-type size limits, but it adds nothing about id or editToken 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb-and-resource outcome: it 'answers the exact HTTP request, and a curl command, that puts the file into one of the draft's image or clip fields.' An agent can tell this is a command-generator for draft media fields, not a direct uploader, and can distinguish it from siblings like upload_pro_image by the draft-field scoping. It stops short of naming any sibling outright.

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 condition that selects this tool is explicit: the file 'is too big to send as a tool argument,' and the agent is told to 'Run it from your shell with the file's path.' That is a clear when-to-use signal plus an execution instruction. There are no exclusions or named alternatives, which keeps it out of the 5 tier.

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