Skip to main content
Glama

describe

Captures a screenshot and uses vision AI to generate a text summary of visible page content, helping verify layouts, form success, errors, and visual state.

Instructions

Use vision AI to describe what's visible on the page. Takes a screenshot and returns a text description.

Configuration (optional - tool works without, but returns error if no key set):

  • Set OPENAI_API_KEY to use OpenAI (gpt-4o) - preferred if both are set

  • Set ANTHROPIC_API_KEY to use Anthropic (claude-sonnet-4)

  • If neither is configured, returns a graceful error message

Use cases:

  • Understand page layout and content without raw HTML

  • Check if forms submitted successfully

  • Identify error messages or alerts

  • Verify visual state after actions

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": {
      "session": "<session>"
    },
    "name": "describe"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoSpecific question about the screenshot (e.g., "What errors are visible?"). If omitted, provides a general description.
sessionYesThe session name
fullPageNoCapture full scrollable page instead of viewport only. Ignored if selector is provided. Default: false
selectorNoCSS selector for a specific element to describe. If omitted, describes the full viewport.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/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, and it does disclose meaningful behavior: it captures a screenshot, requires OPENAI_API_KEY or ANTHROPIC_API_KEY, prefers OpenAI when both are set, and returns a graceful error when unconfigured. It omits practical traits like per-call cost, latency, and whether the captured screenshot is persisted, which are relevant for an external vision API call.

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?

The core action is front-loaded in the first sentence, followed by tightly scoped configuration notes and a bulleted use-case list. A few lines restate what the schema already says (prompt optional), but the structure is easy to scan and largely earns its space.

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?

For a 4-parameter, non-mutating vision tool with no output schema and no annotations, the definition covers prerequisites, fallback ordering, error behavior, and fit scenarios well. It could be stronger by noting output shape limits (text only) and that results depend on external API availability, but nothing essential for invocation is missing.

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 prompt, session, fullPage, and selector are already documented in the schema. The description adds no format or behavioral nuance beyond noting that omitting the prompt yields a general description, which the schema already states; baseline 3 applies.

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?

States a specific verb and resource: 'Use vision AI to describe what's visible on the page' and notes it takes a screenshot to produce text. It implicitly separates itself from the 'screenshot' sibling by emphasizing a text description rather than an image capture, though it never names that sibling to make the contrast explicit.

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

Usage Guidelines4/5

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

The explicit 'Use cases' list gives concrete situations (layout inspection without HTML, verifying form submission, spotting alerts, checking visual state after actions). It does not say when to prefer 'screenshot', 'elements', or 'diagnostics' instead, so the routing guidance is contextual rather than complete.

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