Skip to main content
Glama

highlight

Idempotent

Draws a colored border around a chosen element to verify the correct target before capturing a screenshot.

Instructions

[Agent Browser] Highlight an element with a colored border for visual debugging. Use before screenshot() to confirm you're targeting the correct element. Color can be any CSS color (red, blue, #ff0000, rgb(255,0,0), etc.). Duration in ms.

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": {
      "selector": "<selector>"
    },
    "name": "highlight"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNored
selectorYes
duration_msNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotent, non-destructive, closed-world, but the description adds the key behavioral fact that the highlight is transient, controlled by 'Duration in ms,' and that it renders a colored border overlay. It does not say whether the highlight is auto-cleared or stackable with repeated calls, which would matter for a non-readOnly-annotated tool.

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 short sentences, front-loaded with purpose, then the workflow reason, then the parameter notes. No filler or redundant restatement of the title.

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 simple three-parameter debug utility with an output schema and annotation coverage, this is nearly complete — purpose, timing, and color/duration semantics are all present. The one meaningful hole is the selector syntax, which is the required parameter an agent must get right.

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 0%, so the description must carry the burden. It does well for two of three parameters — color accepts any CSS color with concrete examples (red, #ff0000, rgb(...)) and duration_ms is in milliseconds — but the required 'selector' parameter's format (CSS selector vs. XPath vs. text) is never specified.

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?

States a specific verb and resource ('Highlight an element with a colored border') plus the intent ('for visual debugging'), which cleanly separates it from siblings like screenshot, annotate, and assert_visible. An agent can tell exactly what this does without opening the schema.

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?

Gives concrete workflow guidance: 'Use before screenshot() to confirm you're targeting the correct element,' naming the sibling and the ordering. It stops short of stating when not to use it (e.g., versus annotate or clear_spotlight for persistent marking), so a 4 rather than a 5.

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