Skip to main content
Glama

annotate

Idempotent

Add floating text labels during browser recordings to highlight features or explain on-screen actions, optionally positioned near a CSS selector.

Instructions

[Cinematic Engine - PHASE 2] Add a floating text annotation to the video.

Annotations are visual labels that appear on screen during recording to highlight features or explain what's happening. Use with spotlight() for maximum impact.

Args: text: The annotation text to display target: Optional CSS selector to position near (if omitted, uses center) position: Where to place relative to target: "above", "below", "left", "right" style: Visual style: "light" (white bg) or "dark" (dark bg) duration_ms: Auto-remove after ms (0 = permanent until clear_annotations)

Returns: {"success": True, "data": {"id": "...", "position": {...}}}

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": {
      "text": "<text>"
    },
    "name": "annotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
styleNolight
targetNo
positionNoabove
duration_msNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (which mark it as non-destructive, idempotent, closed-world but not read-only), the description adds real behavioral context: annotations appear on screen during recording, and duration_ms controls lifecycle with 0 meaning persistent until clear_annotations. It does not say what happens when the target selector matches nothing or how positioning degrades without a target beyond "uses center."

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 action sentence is front-loaded, and the Args/Returns layout is scannable. The "[Cinematic Engine - PHASE 2]" prefix and the one-sentence explanation of what annotations are add mild fluff, but nothing is repeated or misleading.

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 five params at 0% schema coverage, the description covers every parameter plus persistence and a scoping note for spotlight pairing, and the documented return value is a bonus given an output schema already exists. Remaining gaps are edge cases: unmatched target selectors, duplicate annotations, and whether a recording session is required.

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

Parameters4/5

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

Schema coverage is 0%, so the description carries the full burden, and it does well: it explains text, target (optional CSS selector, center fallback), position with its four allowed values, style with its two allowed values, and duration_ms semantics. Since the schema declares no enums, the enumerated values for position and style are genuine added value; only invalid-input behavior is left unclear.

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?

"Add a floating text annotation to the video" gives a specific verb and resource, and the follow-up sentence clarifies that annotations are on-screen visual labels rather than document edits. It is clear enough to act on, but it does not explicitly differentiate itself from siblings such as text or highlight, which could plausibly produce similar overlays.

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?

Usage context is implied rather than stated: annotations highlight features during recording and pair well with spotlight(), and duration_ms=0 is described as permanent "until clear_annotations," which routes to that sibling. There is no explicit when-to-use-this-instead-of-X guidance and no stated preconditions such as being in a recording session.

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