Skip to main content
Glama
aakcay5656

DevTools Lens MCP

by aakcay5656

browser_get_dom_snapshot

Capture a compact DOM snapshot for AI agents to inspect page structure, filter by selector, and control depth for frontend debugging.

Instructions

Capture a compact agent-friendly DOM snapshot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxDepthNo
selectorNo
sessionIdNoBrowser session ID; optional when exactly one session exists.
includeTextNo
includeAttributesNo
Behavior2/5

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

The description adds minimal behavioral context ('compact', 'agent-friendly') but doesn't disclose what the snapshot includes, read-only nature, session requirements, or output structure. With no annotations, this is a significant gap.

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 description is a single, front-loaded sentence that efficiently conveys the core purpose. It is concise, though it could benefit from more detail.

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?

With 5 parameters, no annotations, and no output schema, the description is too sparse to fully inform the agent. It doesn't explain return values, parameter effects, or when to use it.

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 only 20% (sessionId has a description). The description provides zero parameter information, so it doesn't compensate for the low coverage. Parameter names hint at meaning but the description adds no value.

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 clearly states a specific verb (Capture) and resource (DOM snapshot), and 'compact agent-friendly' indicates the format. It distinguishes from siblings like browser_inspect_element which focuses on a single element, though it doesn't explicitly name alternatives.

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 versus alternatives. The description lacks any mention of use cases, prerequisites, or exclusions.

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/aakcay5656/devtools-lens-mcp'

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