Skip to main content
Glama

Add callout

snipaya_add_callout

Add a speech-bubble callout with text inside a rectangle and a tail pointing at a target, so you can label screenshots; the box grows to fit the text.

Instructions

Add a speech-bubble callout with text in "rect" and a tail pointing at "tail" (defaults to below the box). The box grows to fit the text.

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": {
      "rect": "<rect>",
      "text": "<text>"
    },
    "name": "snipaya_add_callout"
  }
}

Input Schema

NameRequiredDescriptionDefault
rectYesA rectangle (top-left corner plus size). Canvas units, or image pixels with relativeTo.
tailNoA point. Canvas coordinates, or image pixels when relativeTo is set.
textYes
styleNoOptional style. Omitted fields use the user’s current tool style. Brand colors: coral #EC534E, papaya #FE9440.
tabIdNoTarget tab id. Defaults to the active tab.
relativeToNoImage id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish this is a non-destructive write, so the description's job is to add behavior, and it does: the tail defaults to below the box and the box auto-grows to fit the text, which means the resulting geometry can differ from the rect you pass. It omits whether a new item id is returned or how to subsequently modify the callout, so it's not complete.

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 tight sentences with zero filler, and the core visual concept is front-loaded. It is arguably too terse given the sibling set, but nothing is wasted.

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 6-parameter mutating tool with nested objects and no output schema, the description covers the geometry behavior well but leaves gaps: no mention of the return value (an item id would be needed for snipaya_update_items), no interaction with tabId, and no note on undo. Adequate but not complete.

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 83%, so the schema already documents rect, tail, style, tabId and relativeTo in detail. The description adds one genuine semantic not in the schema – that tail defaults to below the box – but says nothing about text/style/tabId/relativeTo, so baseline 3 is appropriate.

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?

States a specific verb and resource ("Add a speech-bubble callout with text in 'rect' and a tail pointing at 'tail'") and ties the two required parameters to visible geometry, so an agent can picture the result. It doesn't explicitly contrast with add_shape or add_text, which are the nearest siblings, so it stops short of a 5.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance. With siblings like snipaya_add_text and snipaya_add_shape present, the agent gets no instruction on when a callout is the right primitive versus a plain text box or shape, nor any precondition (e.g., must have a canvas/tab selected).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.