Skip to main content
Glama

Upload image

upload_image

Upload an image to BasePic and get links: page_url (short link to share), image_url (direct image) and download_url. Give either a public "url" (an image, or a post on X/Instagram/Facebook) or "image_base64". Returns an id for edit_image and a delete_key. Images up to 50 MB. The image is private: only people with the link can see it. A file on your disk: a path or file:// link does not work as url — if you can run commands, upload it with curl -F "image=@photo.jpg" https://basepic.com/api/v1/images instead (same JSON answer; its id works with edit_image).

Input Schema

NameRequiredDescriptionDefault
urlNoPublic https link to the image
filenameNoOptional file name, e.g. "beach.jpg"
image_base64NoThe image as base64 (a data: URL works too)
return_previewNoAlso return a small preview of the image so you can look at it (default false)

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?

Adds substantial context beyond the annotations: a 50 MB size cap, the privacy model ("only people with the link can see it"), and the fact that a delete_key is issued — a security-relevant detail no annotation conveys. The annotations already cover read/write and open-world status, and the description does not contradict them.

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

Conciseness4/5

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

Front-loaded with purpose and return values, then constraints, then the edge-case fallback — a sensible reading order with no filler. The curl workaround is slightly long, but it carries information the agent cannot get elsewhere.

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 fully discharges the burden of explaining return values (three URLs, an id, a delete_key) as well as size and privacy constraints. Nothing an agent needs in order to call it correctly is 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 baseline is 3, but the description genuinely enriches the schema: it broadens `url` beyond "public https link to the image" to include X/Instagram/Facebook posts, and clarifies why a filesystem path is not an acceptable value. `return_preview` and `filename` are left to the schema's own descriptions.

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 (upload an image to BasePic) and enumerates exactly what comes back: page_url, image_url, download_url, plus an id and delete_key. It also names the sibling it feeds (edit_image), so an agent can place it in the workflow without opening other schemas.

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?

Explicitly branches input: "Give either a public url ... or image_base64", and spells out the important negative case — a local path or file:// does not work as url, with a concrete curl fallback. It doesn't cover when to prefer get_image/delete_image over this, but the create-vs-read distinction is self-evident from the verb.

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