Skip to main content
Glama

Confita

Add an image

add_media
Idempotent

For shop owners: store an image for the shop and get its media_id, which blocks and listings take. Give url (a public https link straight to the image file, which Confita downloads) or data (base64). JPEG, PNG or WebP, up to 5 MB. Confita does not look at the picture: alt says what it shows.

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": {
      "request_id": "<request_id>"
    },
    "name": "add_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
altNoWhat the picture shows, in the shop's main language, for people who cannot see it.
urlNoA public https address of the image file.
dataNoThe image file, base64.
request_idYesUnique per call; the same id again returns the first result.

Output Schema

NameRequiredDescriptionDefault
urlNo
nextNo
errorNo
widthNo
heightNo
outcomeNo
media_idNo
timezoneNo
confirmationNo

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?

The annotations already declare this is a non-read-only, non-destructive, idempotent, open-world write. The description adds real context beyond them: Confita fetches the URL itself (explaining the open-world trait), accepted formats and the 5 MB ceiling, and that no image analysis happens so `alt` must be authored. It does not restate the annotation-level guarantees such as what the idempotent return looks like on repeat calls.

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?

Roughly four short sentences, front-loaded with audience and outcome before the input mechanics. Every sentence carries information, though the audience prefix and the alt-text aside could be tightened slightly.

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?

An output schema exists, so return-value detail is not required, yet the description still explains what the returned `media_id` is for. For a low-complexity 4-parameter upload tool the coverage is nearly complete; the only omission is guidance on choosing `url` versus `data` in practice.

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 100%, so the baseline is 3, but the description genuinely adds meaning: the URL must be a direct link to the image file rather than a page, that the server downloads it, that JPEG/PNG/WebP up to 5 MB are accepted, and that `alt` is not generated automatically. It says nothing extra about `request_id`, which the schema already covers as the idempotency key.

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 uses a specific verb and resource ("store an image for the shop") and immediately names the output that matters (`media_id`) plus who consumes it (blocks and listings). An agent can tell this apart from unrelated siblings like `find_products` or `save_drop` without opening any schema.

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 states the audience ("For shop owners") and gives an explicit either/or between the two input modes: a public https direct link that Confita downloads, or base64 `data`. It does not say when to prefer one over the other (e.g. size or hosting constraints), so it is clear context rather than a full decision rule.

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