Skip to main content
Glama

Start image upload

start_image_upload

Attach an image to a draft (up to 10 media per draft). Returns a mediaId and a signed uploadUrl: send the file’s bytes there with an HTTP PUT and the returned headers, then call finish_image_upload. For video, use start_video_upload.

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": {
      "contentCardId": "<contentCardId>",
      "fileName": "<fileName>",
      "mimeType": "<mimeType>",
      "sizeBytes": "<sizeBytes>"
    },
    "name": "start_image_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNameYesFile name with its extension, such as launch.png.
mimeTypeYesOne of image/jpeg, image/png, image/gif, image/webp.
sizeBytesYesExact file size in bytes.
threadPostIdNoOn a thread, the id of the post the image belongs to, from get_draft.
contentCardIdYesThe draft’s content card id, from create_draft or get_calendar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare safety hints (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=false), so the description carries the behavioral load and does: it discloses the two-call upload protocol, the required HTTP PUT plus returned headers, the returned mediaId/uploadUrl, and the 10-media-per-draft limit. That is materially more than the annotations provide.

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 purpose, then protocol, then the sibling alternative. Every clause carries actionable information and none repeat the schema or annotations.

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 non-destructive but non-idempotent multi-step upload with no output schema, the description covers purpose, return values, and the follow-up call. Minor gaps remain: no mention of uploadUrl expiry, of what happens when the 10-media cap is hit, or of whether a failed PUT requires restarting, which matter for a stateful two-step flow.

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%, with fileName, mimeType, sizeBytes, threadPostId, and contentCardId all documented in the schema, including provenance (create_draft, get_calendar, get_draft). The description adds no per-parameter meaning beyond the schema, so the baseline 3 applies.

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 ('Attach an image to a draft') and names the target entity plus the 10-media-per-draft cap. It also distinguishes itself from the video counterpart by explicitly pointing to start_video_upload, so an agent can separate it from sibling upload tools without opening a 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 ordered workflow: call this, PUT the bytes to the returned uploadUrl with the returned headers, then call finish_image_upload. It also states the alternative for a different media type ('For video, use start_video_upload'), leaving no inference needed.

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