Skip to main content
Glama

Analyze & Cache Screenshot

analyze_screenshot

Analyze a screenshot or image file against a visual state cache, returning cached details or creating a new memory entry when unmatched.

Instructions

Ingest a screenshot or file path, check visual state cache, and return details of the state (generating a new memory entry if not matched).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoOptional classification tags
trace_idNoOptional session_id or trace_id for correlation with state-memory-mcp
file_pathNoAbsolute path to a local image file. Use instead of screenshot to avoid base64 overhead
git_branchNoOverride the active git branch
screenshotNoBase64-encoded image string
source_urlNoOptional app/page path or URL where captured
descriptionNoOptional human/agent-provided description of the screen
force_refreshNoBypass L1/L2 cache and force new ingestion
response_formatNoResponse verbosity. compact omits internal fields like hashes, vectors, AX trees. Default: compact
accessibility_treeNoOptional JSON string representing the simplified AX tree
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false but don't explicitly describe side effects. The description adds useful context by mentioning that it generates a new memory entry if no cache match, disclosing a write behavior. It doesn't cover rates, permissions, or failure modes, but the caching disclosure is valuable.

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?

The description is a single, dense sentence that front-loads the main actions (ingest, check cache, return details) and includes the key side effect. No wasted words.

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?

The description conveys the core function but lacks important context for a tool with 10 optional parameters: it doesn't specify that a screenshot or file path is required in practice, nor what 'details of the state' entails. It also doesn't distinguish from sibling tools like batch_analyze_screenshots, leaving some ambiguity for an agent.

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 the schema already explains all 10 parameters. The description mentions 'screenshot or file path' which maps to screenshot and file_path parameters but adds no extra semantics beyond what the schema provides. 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?

The description clearly states the tool ingests a screenshot or file path, checks the visual state cache, and returns state details. It mentions cache and memory generation, which differentiates it from siblings like save_visual_snapshot. However, the phrase 'details of the state' is somewhat vague and could be more explicit about the output.

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?

The description provides no guidance on when to use this tool versus alternatives like batch_analyze_screenshots or save_visual_snapshot. There are no exclusions or mention of prerequisites, making it unclear how it fits among the many sibling tools.

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/putervision/vision-memory-mcp'

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