Skip to main content
Glama
Crypsis MCP
by mtnba4

crypsis_get_dom

Retrieve a structured DOM tree via CDP, including node IDs, names, attributes, and children. Target elements with CSS selectors, control tree depth, and pierce shadow DOM boundaries.

Instructions

Get structured DOM tree via CDP. Returns nodeId, nodeName, attributes, children. Supports shadow DOM piercing.

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": "crypsis_get_dom"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoTree depth to return (default 4, use -1 for full tree)
pierceNoPierce shadow DOM boundaries (default true)
selectorNoOptional CSS selector to target a specific element

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.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 behavioral burden; it does disclose the return shape and that shadow DOM boundaries can be pierced, which is genuinely useful context beyond the schema. It omits cost/size implications of requesting a full tree (-1) and gives no indication of ordering or handling of detached nodes.

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?

Three short sentences, front-loaded with the operation and followed by the return contract and the one distinguishing capability. No filler, nothing repeated from the schema.

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 read-only, zero-required-parameter tool with fully described parameters and no output schema, the description covers what the tool does and what it returns. The remaining gap is routing guidance against the other DOM/content-extraction siblings, which is the one thing an agent still needs.

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

Parameters3/5

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

Schema description coverage is 100%, so default values and the -1 sentinel are already documented in the input schema. The single added meaning, that piercing shadow DOM is a supported capability tied to the pierce flag, is marginal; baseline 3 applies.

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?

States a specific verb and resource ('Get structured DOM tree via CDP') and enumerates the returned fields (nodeId, nodeName, attributes, children), which makes the operation concrete. It does not however distinguish itself from siblings such as crypsis_get_content, crypsis_find_elements, or crypsis_snapshot, which an agent must still disambiguate on its own.

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?

There is no when-to-use or when-not-to-use guidance and no named alternative. In a toolset with get_content, find_elements, snapshot and search, the agent is left to guess which extraction tool yields a DOM tree versus text or matches.

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