Skip to main content
Glama

upload_image

Upload an image to Liberty.win and get a public URL. The returned URL can be used as a post's url field (for image posts with preview) or embedded in markdown body as alt. Requires login. Supported: jpg, png, gif, webp. Max 10MB. Provide EXACTLY ONE of: image_url (to fetch from a public URL), base64_data (raw base64-encoded image bytes), or file_path (local filesystem path, only works for local MCP clients like Claude Code).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameNoOptional filename (e.g. 'photo.jpg'). Auto-detected if not provided.
file_pathNoLocal filesystem path (only works for local MCP clients, not remote/web clients)
image_urlNoPublic URL of an image to fetch and re-host on Liberty.win (e.g. https://example.com/photo.jpg)
base64_dataNoBase64-encoded image data (no data: prefix). Use this when you have the raw image bytes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: login requirement, accepted formats (jpg, png, gif, webp), a 10MB size cap, the exactly-one-of input constraint, and the important caveat that file_path only works for local MCP clients. These are real constraints an agent must know before invoking.

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?

Front-loads purpose and return value, then packs constraints into tight clauses with no filler. Every sentence — formats, size, login, source exclusivity — earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 supplies the return value (public URL) and its usage, plus all input constraints and auth needs. Nothing an agent needs to call this correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuinely non-redundant meaning: the three image-source parameters are mutually exclusive ('Provide EXACTLY ONE of'), and the file_path/client-mode limitation is reinforced in prose. That constraint is the kind of information a schema alone would not enforce.

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+resource ('Upload an image to Liberty.win') and immediately names the artifact produced ('get a public URL'). This clearly distinguishes it from write-oriented siblings like create_post, whose url field it feeds.

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?

Explains the two downstream uses of the returned URL (post url field, markdown embed) and states the prerequisite ('Requires login'), which gives an agent clear context for when to call it. It doesn't explicitly point to an alternative upload path or say when NOT to use it, but there is no obvious sibling to route against.

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