Skip to main content
Glama

assert_visual_match

Compare a screenshot against a baseline image and return a pass/fail result if the pixel difference stays below a specified threshold.

Instructions

Assert that a screenshot matches a baseline within a threshold - pass/fail result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesScreenshot name to check — must match a name previously used with take_screenshot_with_context
baselineYesPath or name of the baseline screenshot (resolves against baselines directory if not a full path)
thresholdNoAcceptable difference threshold (default: 0.01)
Behavior2/5

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

Without annotations, the description fails to disclose behavioral traits beyond 'pass/fail result'. It does not mention whether the tool is read-only, what happens on failure (e.g., assertion error), or if it creates/modifies baselines.

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?

Single sentence clearly conveys the action and result. Concise and front-loaded, though could be slightly more structured.

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 simple comparison tool, the description is adequate. However, it lacks clarity on assertion behavior (e.g., whether it returns boolean or raises error) and any side effects, which an agent would need to know.

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%, so the baseline is 3. The description adds no additional context beyond the schema, which already documents each parameter's purpose and constraints.

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 clearly states it asserts a visual match against a baseline with a threshold, resulting in pass/fail. It effectively communicates the core function, though it does not differentiate from sibling tools like compare_screenshots.

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 guidance on when to use this tool versus alternatives (e.g., compare_screenshots). No context on prerequisites or exclusions, leaving the agent to infer usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KeeVeeG/godot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server