Skip to main content
Glama

Upload image

upload_media

Upload an image (JPEG/PNG/GIF/WebP, max 5MB) as base64 in data_base64. Returns a public URL — use it as alt in post markdown or pass as coverImage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blog_idNoYour blog's id, as returned by signup. Optional with an API key: it defaults to the key's blog, and any id you pass must be that blog. Required when the server runs without API keys.
filenameYesOriginal file name, e.g. "castle.jpg". Kept for reference; the public URL uses a generated id.
data_base64YesThe image bytes as standard base64 (A-Z, a-z, 0-9, +, / with = padding). No "data:" prefix, no line breaks. Max 5 MB decoded unless the host sets another cap.
content_typeYesImage type: "image/jpeg", "image/png", "image/gif" or "image/webp".
idempotency_keyNoOptional retry key, any unique string (e.g. a UUID). Retrying with the same key and identical arguments returns the first result instead of writing again; the same key with different arguments fails with IDEMPOTENCY_KEY_CONFLICT. Scoped to your API key and this tool.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only on failure (isError: true). Success fields are absent then.
mediaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.