Skip to main content
Glama

Upload Photo

upload_photo

Upload a base64 photo for embedding in generated visuals and receive a CDN URL to pass as embedding_photos to confirm_generation.

Instructions

Upload a photo (base64) to be embedded in generated visuals — product shots, event photos, headshots. Returns a CDN URL to pass as embedding_photos to confirm_generation. Used primarily by the setup widget.

Input Schema

NameRequiredDescriptionDefault
dataYes
filenameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already disclose that this is a non-read-only, non-idempotent, non-destructive, open-world operation. The description adds useful behavior by explaining that it accepts base64 data and returns a CDN URL for embedding_photos, but it omits constraints such as file size, accepted formats, auth needs, and error behavior.

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?

The description is compact and front-loaded, immediately stating the upload action and then the return value and downstream usage. There is no redundant or filler content.

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

Completeness3/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 helpfully explains that the return value is a CDN URL to pass as embedding_photos. However, it remains incomplete regarding filename semantics and upload constraints, which is significant given the 0% schema description coverage.

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

Parameters2/5

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

Schema description coverage is 0% for two parameters. The description explains that data is a base64 photo, but it gives no meaning for filename or its expected format/role, so it only partially compensates for the schema gap.

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 states a specific verb and resource — uploading a photo — and explains its purpose: embedding photos into generated visuals. It also names the downstream use with confirm_generation, making the tool easy to distinguish from sibling tools like list_formats or get_generation.

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?

It gives clear usage context: photos are intended to be embedded in generated visuals and the returned CDN URL is passed as embedding_photos to confirm_generation. It also notes primary use by the setup widget, though it does not explicitly state when not to use it or name alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.