Skip to main content
Glama
Browser MCP Server

Browser MCP Server

mark_page

Annotate interactive page elements with numbered boxes and return a compact element list for clicking or typing by index, reducing token usage versus full HTML.

Instructions

Annotate page with numbered boxes on interactive elements. Returns ultra-compact element list. Use click_element/type_into_element by index. Huge token savings vs full HTML.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mark_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full load: it does disclose the side effect of drawing numbered boxes on the page and that the return is a compact list, which are the key behavioral facts. It omits whether annotations persist, how to remove them (a sibling, unmark_page, exists), and any prerequisite that the page be open or focused.

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?

Four short sentences, front-loaded with the action and followed by the return shape and the next step, with no filler. The telegraphic phrasing is dense but readable; 'Huge token savings' is slightly promotional yet still carries decision-relevant information.

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?

With no output schema, the description does a reasonable job of describing the return ('ultra-compact element list' indexed for clicking). For a page-mutating tool with no annotations and an undocumented parameter, though, it should at least address annotation lifetime and the pageId target.

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?

The single parameter pageId has 0% schema description coverage, and the description never mentions it, so the agent cannot tell whether it targets a specific page, defaults to the active page, or is optional (required count is 0). 'Annotate page' hints at a target but adds no usable semantics.

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 uses a specific verb and object ('Annotate page with numbered boxes on interactive elements') and states the payoff ('ultra-compact element list'), so the core function is unmistakable. It does not differentiate from likely siblings such as mark_page_and_screenshot or unmark_page, so an agent still has to guess which variant to pick.

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?

It gives clear downstream workflow guidance ('Use click_element/type_into_element by index') and a rationale for choosing it over get_page_html ('Huge token savings vs full HTML'), which implicitly frames when to prefer it. It stops short of explicit exclusions, e.g., when the compact list is insufficient and a fuller representation is required.

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