Skip to main content
Glama

Upload image

upload_image

Upload an image to a blog. Use the returned path as the image value when creating or updating a post, page, or blog.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesBase64-encoded image bytes without a data URL prefix. Maximum decoded size: 8 MB.
blogIdYesBlog ID. Use list_blogs to discover available blog IDs.
filenameYesOriginal image filename, including its extension.
mimeTypeYesImage MIME type. SVG is supported only for logo uploads.
uploadTypeNoWhere the image will be used. Default: post.post

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate a mutating, non-read-only operation, so the description does not need to restate that. It adds useful behavior beyond annotations: the upload is a separate step that yields a path to be reused later, clarifying that images are not auto-attached to content. It does not describe storage or overwrite behavior, but this is not essential here.

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 short sentences with no filler. The core action is front-loaded, followed immediately by the most important usage instruction. Every sentence earns its place.

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 complete input schema, an output schema, and annotations covering mutation safety, the description provides the right high-level glue. It explains the returned-path workflow and covers the main post/page/blog cases. It does not explicitly mention logo uploads, but the schema does, so the missing detail is minor.

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 each parameter already documented in the input schema. The description adds no parameter-level detail beyond reinforcing the post/page/blog usage, which corresponds to the uploadType enum. Baseline 3 applies because the schema carries the parameter semantics.

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?

The description uses a specific verb and resource ('Upload an image to a blog') and clearly explains the downstream purpose: the returned path becomes the image value when creating or updating posts, pages, or blogs. This distinguishes it from sibling create/update tools by positioning it as an image prerequisite rather than a content-operation.

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 gives explicit workflow context: call this first, then use the returned path in create/update calls. It does not name excluded cases or alternatives, but since no sibling does image upload, the use case is largely unambiguous. The omission of the 'logo' uploadType is a minor gap.

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