Skip to main content
Glama

Upload a product photo

upload_product_photo
Idempotent

Put a product photo into the user's workspace so a campaign can edit stills from the real thing. Base64 of the image bytes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filename": "<filename>",
      "data_base64": "<data_base64>"
    },
    "name": "upload_product_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesName to save it under, with the extension — 'bottle.jpg'. Reusing a name that is already there replaces that photo.
data_base64YesThe image file's bytes, base64-encoded. The raw image, not a data: URL and not a path on your own machine.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is largely covered by structured data. The description adds the base64 payload expectation, but discloses no size limits, supported formats, or permission requirements, and the overwrite behavior is carried only by the schema, not the description.

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?

Two short sentences with the core action front-loaded and no redundant padding. The second sentence is a cheap but useful encoding reminder rather than filler.

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?

The tool is a mutation with no output schema, so the description would ideally say what comes back (a file id or path usable by start_campaign) and any format/size constraints. Given only two fully documented parameters and clear annotations, the description is minimally adequate but leaves the post-upload handoff to inference.

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 description coverage is 100% and both parameters are fully documented there, including the name-reuse-replaces behavior. The description only restates that the payload is base64 image bytes, adding no syntax, encoding, or size nuance beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb and resource ("Put a product photo into the user's workspace") and ties it to a downstream goal (a campaign editing stills), which clearly separates it from read-only siblings like list_workspace_files and read_workspace_file. The wording "edit stills from the real thing" is colorful but slightly imprecise about whether it is an upload or an attach operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: you gather the intent that a photo belongs in the workspace before a campaign can use it. There is no explicit statement of when to call this versus other file-handling siblings (read_workspace_file, get_download_url) or of prerequisites such as an existing campaign or workspace.

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.