Skip to main content
Glama

screengraph_visual_search

Search past windows by visual concept, colour, chart shape, or layout to find the matching window event and the exact screen region where it appeared.

Instructions

Search past windows by visual concept, colour, chart shape or layout using late-interaction Patch-MaxSim; returns the window event plus the exact spatial patch (row, col, quadrant, screen bbox).

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": {
      "query": "<query>"
    },
    "name": "screengraph_visual_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
queryYesVisual description, e.g. 'red memory spike chart in top-right quadrant'.

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?

No annotations are supplied, so the description carries the full burden. It usefully discloses the retrieval mechanism ('late-interaction Patch-MaxSim') and the returned payload ('window event plus the exact spatial patch'), but it never states that this is a read-only operation, nor anything about result ordering, pagination, or cost.

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?

A single dense sentence with no filler; the query modalities are front-loaded and the return payload follows. The jargon ('late-interaction Patch-MaxSim') is slightly heavy but it earns its place by signalling the ranking method.

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

Completeness4/5

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

With no output schema, the description does the necessary work of describing the return value down to row, column, quadrant and screen bbox. The only meaningful omission is the meaning and effect of 'k' on result count and ordering, which leaves a small gap for a 2-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: the 'query' parameter is documented in the schema, but 'k' has no description anywhere. The description never mentions 'k' or that it controls how many results come back, so the one undocumented parameter stays opaque and the description does not compensate for the coverage gap.

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?

The description names a specific verb and resource ('Search past windows') and enumerates the query modalities ('visual concept, colour, chart shape or layout'), which clearly separates it from a plain-text sibling like screengraph_search. It also states what a hit contains, so the agent knows the output shape before calling.

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?

The phrase 'by visual concept' implies this is the visual-modality search and that textual queries belong elsewhere, but no alternative is named and there is no explicit when-to-use or when-not-to-use statement. The agent must infer the routing from the modality wording alone.

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