Skip to main content
Glama

Upload an image

upload_image

Upload one image. With asItem true it becomes a draggable item (label = name). Otherwise it is a free image on the canvas, such as a screenshot or a logo next to the title; x, y and w are in pixels of the 1080 wide canvas.

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

Input Schema

NameRequiredDescriptionDefault
wNoFree image width in pixels (default 200).
xNoItem: -1..1 like add_items. Free image: left edge in pixels.
yNoItem: -1..1 like add_items. Free image: top edge in pixels.
atNoHype cycle and Dunning-Kruger maps: the exact place on the curve, 0 (left) to 100 (right). Overrides phase.
toNoSankey maps: the item's flows out, as {"Target label": 35000} or [{"to": "Target", "value": 35000}]. Targets can be items added later in the same call. On Sankey maps every new item goes on the chart; send tray: true to keep one in the tray.
colNoGrid maps: the column name (for example "Lawful").
rowNoGrid maps: the row name (for example "Good"). Give row and col together; leave both out for the tray.
bandNoIceberg maps: the band name (or 0-based index from the tip) the item goes in. Leave out for the tray.
doneNoChecklist maps: true ticks the item off.
edgeNoFlowchart maps: the label on the line from the parent, for example "Yes" or "No".
nameYesLabel for the image.
ringNoTech radar maps: the ring, by name ("Adopt", "Trial", "Assess", "Hold") or 0-based index. Give sector too. Leave out for the tray.
ruleNoCards maps: the rule, one bold sentence. Words in [brackets] take the accent.
setsNoVenn maps: the circles the item belongs in, by name, for example ["Relevant", "Timely"] for that overlap, or all of them for the center. Leave out for the tray.
tierNoTier lists: the tier name (for example "S") or tier id. Leave out to put the item in the tray.
trayNoOrg chart, flowchart, checklist, leaderboard and scorecard maps: on add_items, true keeps the item off the chart, in the tray.
zoneNoBell curve maps: the zone the item goes in: "left", "middle" or "right" (or a level name, or 0 to 2). Leave out for the tray.
colorNoCards maps: the card color, one of paper, ink, orange, purple, yellow, mint (ink is dark), or a hex like "#1E40AF". Text turns light or dark to match.
deltaNoLeaderboard maps: the change since last time, for example 3 or -2; the page shows it with an up or down arrow.
gradeNoScorecard maps: the grade, "A+" to "F", or a number from 0 to 10.
humanNoOrg chart maps: true marks a step where a human still approves (human in the loop).
imageNoCards maps: a proof image on the card (a screenshot or a post): a public http(s) URL, or base64 / a data: URL (max 2 MB).
mapIdYesThe map id from create_map.
phaseNoHype cycle and Dunning-Kruger maps: the phase the item sits in, by name (or the start of one, like "trough") or 0-based index. Items in one phase spread out inside it. Leave out phase and at for the tray.
shapeNoFlowchart maps: box (a step, the default), decision (a question, drawn as a diamond) or end (an outcome).
stackNoCards maps: the tools, as domains ("ayrank.com") or {domain, name}. The server stores each logo.
stageNoFunnel and pyramid maps: the stage or level name (or 0-based index) the item goes in, for example "Demos". Leave out for the tray.
statsNoCards maps: 2 to 4 small figures under the big number, [{value: "2,715", label: "answers tracked"}].
stepsNoCards maps: 3 to 6 "how to run it" steps, [{text: "...", key: true}] (key highlights one step), or strings ("(key) ..." marks the key one).
tokenYesThe editToken from create_map. Required for every change.
valueNoLeaderboard maps: the value the list is ranked by, for example 1200000. On checklist, leaderboard and scorecard maps every new item goes on the list; send tray: true to keep one in the tray.
asItemNotrue: add as a draggable item. false (default): free image.
markedNoBingo maps: true stamps the square, false clears it.
parentNoOrg chart and flowchart maps: the label or id of the box this one reports to (org) or comes after (flow). Leave out for a top box. On these maps every new item goes on the chart; send tray: true to keep one off it.
scoresNoRadar maps: the item's score on each criterion, as {"Price": 8, "Speed": 6} (criteria names) or a list in their order. Items without scores stay in the tray; scores: null takes an item off the chart.
sectorNoTech radar maps: the sector the item sits in, by name or 0-based index.
symbolNoPeriodic table maps: the element symbol, 1 to 3 letters, for example "Cl". Leave out and the page derives one from the label.
bestForNoCards maps: who the card is for, one line.
captionNoCards maps: the line under the big number.
sectionNoSection formats: the section the item goes in, by name, for example "Agents" on a levels map, "How it started", or "Data" on a market map. Leave out for the first section.
imageUrlNoPublic http(s) URL of a logo image (png, jpg, webp, gif or svg, max 2 MB).
bigNumberNoCards maps: the huge figure on the card, for example "$887K", "11x" or "4% → 17%". On a cards map every new item is a card (send tray: true to keep one off the strip).
imageBase64NoThe logo itself as base64 or a data: URL (png, jpg, webp, gif or svg, max 2 MB). A whole request can be at most 4 MB, so prefer domain or imageUrl, and send big files in separate calls.

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, destructiveHint=false and openWorldHint=true, so the write/non-destructive profile is covered. The description adds the item-vs-free-image behavioral split and the pixel coordinate frame, but omits practical traits an agent would want: that token edits are required, image format/size constraints, and whether a re-upload replaces or accumulates.

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 sentences, front-loaded with the action and the mode switch, followed by the coordinate clarification. Dense but no filler; the conditional clause about x/y/w is readable though slightly ambiguous about which mode it applies to.

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?

For a 43-parameter, multi-map-type tool with no output schema, the description covers only the two-mode distinction and coordinates. The image payload mechanism, map-type applicability, and limits are left entirely to the schema, which is acceptable given 100% coverage but leaves the definition thin for such a broad interface.

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% across 43 parameters, so the schema already carries nearly all parameter meaning. The description adds one genuinely new mapping (label = name) and the 1080-pixel canvas reference for x/y/w, but is silent on how the image bytes are actually supplied (imageUrl/imageBase64) and on size limits.

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 specific verb and resource ('Upload one image') and clarifies the two resulting modes (draggable item when asItem is true, free canvas image otherwise). It never names or contrasts with add_items, even though asItem=true appears to overlap with that sibling, so an agent must infer the boundary.

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?

It gives concrete examples of when the free-image mode applies ('a screenshot or a logo next to the title') and states the asItem switch, which is useful. It says nothing about when to choose this over add_items or update_items, nor about replacing an existing image, leaving the main routing decision implicit.

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