Skip to main content
Glama
BrowserGenie

BrowserGenie MCP Server

by BrowserGenie

deep_query_shadow_dom

Query an element inside a deep shadow DOM tree by specifying a path of host selectors and an inner CSS selector.

Instructions

Query an element inside a deep shadow DOM tree by providing a path of host selectors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostPathYesOrdered array of shadow host CSS selectors to traverse
innerSelectorYesCSS selector within the deepest shadow root
tabIdNoTarget tab ID (defaults to currently active tab)
apiKeyNoAPI key for authentication if enabled
Behavior1/5

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

No annotations provided, and description only states the action without behavioral details (e.g., error on invalid path, return value format, side effects). Fails to disclose any behavioral traits.

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?

Single sentence, 14 words, front-loaded with purpose. Every word contributes to clarity; no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, yet description does not explain return value. Does not mention optional parameters like tabId or apiKey, leaving usage context incomplete for a 4-parameter tool.

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?

Schema coverage is 100%, but description adds no meaningful interpretation beyond the schema. The phrase 'path of host selectors' mirrors the parameter description without additional context.

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?

Clear verb 'Query' and resource 'element inside a deep shadow DOM tree'. Distinguishes from siblings by mentioning 'deep shadow DOM', but does not explicitly contrast with 'query_shadow_dom' or 'get_shadow_dom_tree'.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives. No prerequisites, limitations, or conditions for use are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BrowserGenie/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server