Skip to main content
Glama

VisionFlow Match

Find where a small pattern image (a button, icon, logo or crop) appears inside a

template-match

Find where a small pattern image (a button, icon, logo or crop) appears inside a larger screenshot or picture, using OpenCV cv2.matchTemplate. Returns the best position, plus every non-overlapping position scoring above the threshold, as pixel boxes with scores. Use it for exact-looking pixel patterns at the same scale; for different scale, rotation or perspective use /v1/homography. Price: $0.003 a call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYesBase64 of a PNG, JPEG, BMP or WebP file (a data: URI also works). At most 4 million pixels and about 2 MB. Alpha is dropped.
methodNoOpenCV matching method (default TM_CCOEFF_NORMED, robust to brightness change). Scores are 0-1, higher is better; for TM_SQDIFF_NORMED the score is 1 minus the squared-difference value
templateYesBase64 of the pattern to find, same formats. At most 1 million pixels and about 1 MB. Must fit inside the image.
grayscaleNoMatch on grayscale versions of both images (default false: match all three colour channels)
thresholdNoMinimum score for a match, 0-1 (default 0.8)
max_matchesNoMost matches returned, 1-50 (default 5); overlapping positions are suppressed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does a good job: it discloses the return shape (best position plus every non-overlapping position above threshold, as pixel boxes with scores), the engine used, and the per-call price of $0.003. It does not cover auth requirements or rate limits, which is the main remaining gap.

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 sentences, each earning its place: purpose first, return shape second, routing rule and price last. No padding or restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must cover returns, and it does (best position, all non-overlapping matches, pixel boxes with scores). Combined with 100% schema coverage of inputs, an agent has everything needed to call this correctly.

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 description coverage is 100%, so every parameter is already documented in the schema, including method enum trade-offs and score normalization. The description adds only marginal context ('scoring above the threshold') and no syntax beyond what the schema supplies, so the baseline 3 applies.

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?

Names a specific verb and resource ('Find where a small pattern image ... appears inside a larger screenshot') and identifies the underlying algorithm (cv2.matchTemplate). It explicitly distinguishes itself from the sibling homography tool by scoping to 'exact-looking pixel patterns at the same scale'.

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

Usage Guidelines5/5

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

Gives both a when-to-use condition ('exact-looking pixel patterns at the same scale') and a when-not with a named alternative ('for different scale, rotation or perspective use /v1/homography'). The agent can route between template-match and homography without opening either schema.

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