Skip to main content
Glama

get_dom

Read-only

Read bounded HTML, visible text, or accessibility snapshots from Typora to inspect rendered content and debug layout or accessibility issues.

Instructions

Read bounded HTML, visible text, or an accessibility snapshot from Typora.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
formatNohtml
maxCharsNo
selectorNohtml
targetIdNoRenderer targetId from typora_status; required when no single window is focused
snapshotIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The word 'bounded' adds a genuine behavioral note about output capping, but the description omits the default/max limits, how format selection affects the result, and the targetId focus requirement noted in the schema.

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?

A single well-formed sentence, front-loaded with the verb and resources, with no filler. It is appropriately terse, though the terseness is what causes the coverage gaps elsewhere.

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?

For a six-parameter, zero-required tool with low schema coverage and no output schema, the description is far too thin. It does not explain how ref/selector/targetId/snapshotId interact or how the three formats differ in output, leaving the agent under-equipped to call it correctly.

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 description coverage is only 17%, so the description carries the burden, yet it only implicitly maps to the format enum (html/text/accessibility). It says nothing about ref, selector (defaults to 'html'), maxChars, or snapshotId, leaving five of six parameters unexplained in both description and schema.

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 gives a specific verb (read) and three concrete resources (bounded HTML, visible text, accessibility snapshot) plus the source (Typora), so the agent knows what it produces. It does not, however, differentiate itself from siblings like get_element, query_selector, typora_snapshot, or typora_get_document_source, leaving the selection decision ambiguous.

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 guidance, no prerequisites, and no named alternatives, even though several siblings overlap heavily (get_element, query_selector, typora_snapshot). The agent must infer the use case entirely from the one-line purpose.

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