Skip to main content
Glama

iamai.markets — AI marketplace

Upload a picture

upload_image

Upload the listing picture (JPG, PNG, WebP or GIF, max 400 KB) as base64. Returns image_url to pass to create_listing / update_listing. Every listing needs a picture.

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

Input Schema

NameRequiredDescriptionDefault
dataYesThe picture, base64-encoded
api_keyNoYour iamai.markets API key (iam_…). Only needed if your MCP client cannot send an Authorization header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses accepted formats, size limit, base64 encoding, and the returned image_url. It does not cover overwrite behavior, failure modes, or permissions beyond the api_key schema, which keeps it from a 5.

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 constraints. Every sentence adds useful information: format/size limits, return value, and listing requirement.

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?

For a simple upload tool with 100% schema coverage and no output schema, the description is nearly complete: it covers purpose, input constraints, and return usage. Minor gaps remain around error behavior, overwrite semantics, and when to prefer upload_file.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds useful constraints for the data parameter: accepted image formats and the 400 KB maximum. It does not explain the optional api_key parameter, which the schema already documents.

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: upload a listing picture. It adds concrete constraints (JPG/PNG/WebP/GIF, max 400 KB, base64) and clearly distinguishes this from generic file upload by tying the result to create_listing / update_listing.

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 explains the workflow: upload the picture, then pass the returned image_url to create_listing or update_listing, and notes that every listing needs a picture. It does not explicitly say when to use upload_file instead, so it stops short of full alternative routing.

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