Skip to main content
Glama

upload_image

Upload an image and return the hosted image record.

data must be the image bytes encoded as standard base64 (RFC 4648). Accepted image formats are PNG, JPEG, WebP, and GIF.

visibility controls who can access the served URL: "public" makes it accessible to anyone with the link; "private" (default) requires the owner's credentials. Accepted values: "public", "private".

ttl_seconds sets an expiry relative to now (positive integer). Omit to create a permanent image.

Returns: {id, token, url, visibility, expires_at, size_bytes, content_type}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesRaw image bytes encoded as standard base64 (RFC 4648). Accepted formats: PNG, JPEG, WebP, GIF.
visibilityNoWho can access the served URL: 'public' for anyone with the link, or 'private' (default) for owner-only.private
ttl_secondsNoExpiry in seconds from now; omit for a permanent image.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Discloses behavioral details beyond annotations: requires base64 encoding, accepted formats, visibility control, TTL expiry, and return fields. Annotations only indicate non-readonly, non-destructive, non-idempotent; description fills in specifics.

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?

Concise and well-structured with bullet points for key details. Every sentence earns its place without redundancy. Efficiently communicates all necessary information.

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?

Given output schema presence, description explains return fields (id, token, url, etc.), covers input requirements, and provides complete behavioral context. No gaps.

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

Parameters5/5

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

Schema coverage is 100%, and the description adds meaningful explanations for each parameter: data format, visibility acceptable values, TTL semantics. Adds value beyond the schema alone.

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?

Clearly states 'Upload an image and return the hosted image record.' Specifies verb (upload) and resource (image), differentiating it from siblings like get_image, delete_image, and update_image.

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?

Provides detailed usage guidance on data format, accepted image types, visibility options, and TTL. Does not explicitly mention when not to use or alternatives, but the context is clear.

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.