Skip to main content
Glama

Typebar (formerly SuperDocs)

upload_image_base64

Upload an image (base64-encoded) and get a stable URL to reference in a document via .

Accepts PNG/JPEG/WebP/GIF/SVG, up to 10 MB decoded. Send raw base64 or a data: URL in image_base64. This is the agent-friendly counterpart to the browser multipart upload — use it to save a generated or fetched image so a document can embed it.

Embed the returned url (the stable canonical reference — it never expires and every document read serves it as a fresh time-limited signed link). view_url is such a signed link for immediately viewing/downloading the image outside a document; it expires, so never embed it.

Input Schema

NameRequiredDescriptionDefault
filenameNoOptional original filename (used only to infer content type).
content_typeNoOptional MIME type, e.g. image/png. Defaults to image/png.
image_base64YesThe image bytes, base64-encoded (raw base64 or a data: URL).
authorizationNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/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 well: it discloses accepted formats (PNG/JPEG/WebP/GIF/SVG), a 10 MB decoded size limit, and the crucial lifetime distinction between the permanent `url` and the expiring `view_url`. It omits auth/permission requirements (the schema exposes an `authorization` field that is never explained) and any rate-limit or failure behavior.

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?

Three tight paragraphs, front-loaded with the core action and return value, then input constraints, then the embed-vs-view warning. The parenthetical asides add length but each carries a real constraint; nothing is pure filler.

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 no output schema, the description compensates well by explaining both returned fields (`url` vs `view_url`) and which one to embed. It is nearly complete for an upload tool; the only real gap is the unexplained `authorization` parameter and any error/failure semantics.

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 coverage is 75%, so the baseline is 3. The description reinforces `image_base64` (raw base64 or data: URL) and adds genuine constraints the schema lacks (10 MB decoded, accepted formats), but it says nothing about `authorization`, `filename`, or `content_type` beyond what the schema already documents.

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 (base64-encoded)') plus the outcome ('get a stable URL to reference in a document'). It also distinguishes itself from the browser multipart upload path, so an agent can place it against siblings like upload_attachment_base64 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives the use case ('save a generated or fetched image so a document can embed it') and names the browser multipart upload as the alternative it replaces. It does not, however, explain when to prefer it over the sibling upload_attachment_base64 or upload_document_base64 tools, which are the closest neighbors in the list.

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.