Skip to main content
Glama

Add magnifier

snipaya_add_magnifier

Adds a round magnifying lens at a target point to show a zoomed view of the area around a source point, with adjustable zoom and radius.

Instructions

Add a round magnifying lens at "lens" that shows a zoomed view of the area around "source". radius defaults to about 8% of the short side of the image under the source.

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": {
      "source": "<source>",
      "lens": "<lens>"
    },
    "name": "snipaya_add_magnifier"
  }
}

Input Schema

NameRequiredDescriptionDefault
lensYesA point. Canvas coordinates, or image pixels when relativeTo is set.
zoomNo
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.
radiusNo
sourceYesA point. Canvas coordinates, or image pixels when relativeTo is set.
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

A3.6/5.0
Behavior3/5

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

Annotations declare a non-readOnly, non-destructive, closed-world mutation, so the safety profile is already covered. The description adds useful context (radius defaults to ~8% of the short side, coordinate interpretation), but says nothing about what the call returns or that added items can be edited via snipaya_update_items / reversed via snipaya_undo.

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?

Two tight sentences, front-loaded with the operation and followed by the default that matters. Nothing redundant; no restating of the title.

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 7-parameter mutation with nested style/point objects and no output schema, the description covers geometry well but omits zoom behavior (enum 2/3/4, default 2) and the return value, which an agent needs to chain into snipaya_update_items.

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 71%, and the description compensates where the schema is silent: radius has min/max bounds but no default in the schema, and the description supplies the ~8% short-side default. The distinction between lens and source points is explained relationally rather than repeated verbatim.

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?

Specific verb+resource: adds a round magnifying lens at 'lens' that magnifies the area around 'source'. The effect is described concretely enough to distinguish it from sibling add_* tools like add_callout or add_spotlight. It stops short of naming which sibling to use for non-magnified emphasis.

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?

Implied usage only: the described effect (zoomed view of a source area) suggests when the tool is appropriate, but there is no explicit when-to-use, when-not, or alternative routing (e.g. callout vs spotlight vs magnifier).

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