Skip to main content
Glama

Upload an ad image

upload_image
Idempotent

Stores an image for a Paid Visits ad (it needs an image or a video) or a Banner ad (optional; PNG, JPEG or GIF of exactly one banner size, see list_ad_formats) and returns its id, to send as image_id in the order. Needs an API key. A video for a Paid Visits ad is uploaded over HTTP instead: POST the file to /api/v1/videos, then follow it with get_video.

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": {
      "image_base64": "<image_base64>"
    },
    "name": "upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoThe API key of the account (can_live_...). Optional when this MCP connection sends it as the Authorization: Bearer header.
image_base64YesThe image file, base64-encoded: PNG, JPEG, WebP or GIF, at most 500 KB.
idempotency_keyNoOnly to REPEAT an earlier call of this tool (a lost answer, a payment still confirming): the idempotency_key that call returned. Leave it out for a new call; the server then makes a random one and returns it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/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=true, so the description's extra value is the auth requirement ('Needs an API key'), the returned id's downstream role, and format constraints. It does not mention the 500 KB cap or WebP support that the schema carries, and 'Needs an API key' slightly glosses over the schema's note that the key may come from the Authorization header.

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-loads the core action and ad-type scoping, with the video alternative isolated in a second sentence. Heavy parenthetical nesting makes the first sentence dense, and the format list (PNG/JPEG/GIF) partially duplicates the schema while omitting WebP.

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?

No output schema exists, and the description correctly explains that an id is returned and consumed as image_id. Auth, format constraints, and the video escape hatch are covered; the only residuals are the size ceiling and WebP discrepancy, both of which live in the schema.

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%, so all three parameters (api_key, image_base64, idempotency_key) are already fully documented with the idempotency replay semantics. The description adds only the returned-id-as-image_id relationship, which is an output detail rather than parameter meaning, so the baseline 3 applies.

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 ('Stores') and resource ('an image'), scoped to two concrete ad types (Paid Visits, Banner), and says what it returns (the id) and how that id is reused as image_id. It names the siblings that matter (list_ad_formats, get_video) so the tool is distinguishable without opening schemas.

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

Usage Guidelines5/5

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

Explicitly states when the tool is required (Paid Visits ads need an image or video) versus optional (Banner ads), and gives a hard constraint (exactly one banner size, see list_ad_formats). It also routes the video case away from this tool with a concrete alternative: POST to /api/v1/videos then get_video.

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