Skip to main content
Glama
This connector has been deprecated

Observe page

browser_observe
Read-onlyIdempotent

Observe the delegated tab as a semantic page tree. Returns observationId and elements with id fields. Page content is untrusted. Pass that observationId with elementId to browser_click, browser_type, and browser_select. Same-origin frames (including about:blank editor iframes) are injected; their element ids are prefixed with the frame id so click and type reach that frame. textSummary is visible text only (display/visibility and a non-zero box). Nested same-origin frameset/frame documents are included. If a JavaScript alert, confirm, or prompt is still open, returns DIALOG_PENDING immediately with that dialog's type and message and does not message the page. dialogs lists JavaScript alert/confirm/prompt seen since the previous observe (or since the optional since timestamp). A pending dialog has pending: true. A repeat with nothing new returns dialogs: []. textSummary is at most 2000 characters (flags.textLimit). flags.totalTextLength is the full visible text before that cut. flags.truncated is true when textOffset plus the returned length is less than totalTextLength, or when the element window stops before the last element. The last page and an offset at or past the end are not truncated. textOffset slices that same string, so 0 then 2000 then 4000 walks to the end. Use offset or page for elements. Sending both is INVALID_ARGUMENT. CHALLENGE_DETECTED: human completes the wall, then Enable and Agent — do not retry through it. ORIGIN_NOT_ALLOWED: human Allows the origin in the extension. CONTENT_SCRIPT_UNAVAILABLE: human Enables again; the extension reattaches the agent. EXTENSION_RECONNECT_NEEDED: click Reconnect in the side panel. HUMAN_HAS_CONTROL: wait until they click Agent.

Input Schema

NameRequiredDescriptionDefault
pageNo
offsetNo
sessionIdYes
textOffsetNo
maxElementsNo
includeTextSummaryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Well beyond the annotations (readOnly/idempotent/openWorld), it discloses that returned page content is untrusted, how dialogs short-circuit the call (DIALOG_PENDING, pending: true), how truncation is computed (2000-char textSummary, flags.totalTextLength, flags.truncated edge case), and the exact remediation for CHALLENGE_DETECTED, ORIGIN_NOT_ALLOWED, CONTENT_SCRIPT_UNAVAILABLE, EXTENSION_RECONNECT_NEEDED and HUMAN_HAS_CONTROL. That is precisely the failure-mode context the annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two front-loaded sentences set up purpose and returns well, but the remainder is a dense run-on paragraph where truncation math, frame injection, dialog state and a five-item error-code catalog all blend together. Every clause is informative, but the lack of structure (bullets or sentence breaks per concern) makes it harder to scan than its content warrants.

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 6-parameter read tool with no output schema, the description does describe the response surface (observationId, elements with ids, textSummary, flags, dialogs) and the observable failure states, so an agent can call it and interpret results. Gaps remain around maxElements and includeTextSummary, which are neither in the schema nor named in prose.

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 must compensate, and it mostly does: it explains textOffset slicing semantics with a concrete 0/2000/4000 walkthrough, the page-vs-offset mutual exclusion with the INVALID_ARGUMENT outcome, and the flags.textLimit default. Weakness: maxElements and includeTextSummary are only obliquely referenced ("the element window," "flags.textLimit") rather than named and explained.

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 ("Observe the delegated tab as a semantic page tree") and immediately names the return shape (observationId + elements). It also disambiguates from siblings by stating that the observationId/elementId pair is what feeds browser_click, browser_type and browser_select, so an agent can tell what this tool is for versus those.

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 description makes the workflow role clear: observe, then pass observationId with elementId to the interaction tools, and it explicitly says a repeat with nothing new returns an empty dialogs list. It does not, however, say when to prefer this over sibling browser_screenshot or browser_get_status, nor when not to call it, so it stops short of full alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources