Skip to main content
Glama

Upload an image

upload_image

Store an image in the site's draft, resized for the web. Returns the path to use in an . Takes a public image address (url, which Clay downloads) or the image bytes (base64).

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

Input Schema

NameRequiredDescriptionDefault
urlNoa public http(s) address of the image; Clay downloads it
nameNofile name, e.g. hero.jpg (taken from the url when left out)
siteYesthe site's clay.site name (subdomain) or its id
base64Nothe image bytes, base64 (only when there is no url)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower, and the description still adds real behavior: the image lands in the draft, gets resized for the web, and the return value is a path for an <img src>. It does not address what happens on a name collision or whether a repeat upload duplicates the file, which is the main remaining gap.

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?

Three short sentences, front-loaded with the action and scope, then the return value, then the input alternatives. Every sentence carries distinct information with no repetition of the title.

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 usefully explains what comes back (a path usable in an <img src>), and it covers both input routes for a 4-parameter tool. Remaining omissions are edge-case behavior such as overwrite semantics and where in the draft the file lands.

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 100%, so every parameter is already documented, and the description largely restates that (url is downloaded by Clay, base64 is the byte alternative). It adds the useful framing that these are two mutually exclusive input routes, but no syntax or format detail beyond the schema; baseline 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 states a specific verb and resource ('Store an image') plus meaningful scope ('in the site's draft, resized for the web'), so an agent knows exactly what the tool does. It stops short of naming a sibling such as upload_to_library or use_library_image, so the distinction from those tools must be inferred from the 'site's draft' phrasing.

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 context is implied by the draft-site scoping and the two accepted input forms, but there is no explicit statement of when to choose this over upload_to_library or use_library_image. The agent gets a reasonable sense of purpose but no routing guidance or exclusions.

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