Skip to main content
Glama

get_page_structure

Analyzes a page's semantic DOM structure, interactive elements, and landmarks to map layout and navigation for inspection.

Instructions

Get semantic DOM structure, interactive elements (max 50), and landmarks of a page. Returns { title, sections, interactiveElements, landmarks }

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "get_page_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/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 burden. It does add real value by disclosing a hard cap of 50 interactive elements (truncation behavior) and the shape of the return object, but it says nothing about whether JavaScript-rendered content is handled, authentication or cookie requirements, error behavior, or how large or slow the response may be.

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?

Two tight sentences with the substance front-loaded and no filler. The second sentence earns its place because no output schema exists, though it is slightly redundant with the enumeration in the first.

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 simple single-parameter read tool with no annotations and no output schema, the description covers the returned fields and one important behavioral limit. It falls short only on environment-level concerns (dynamic rendering, auth, failure modes) that an agent would want before calling it on an arbitrary URL.

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?

There is a single required 'url' parameter with 100% schema description coverage, so the schema already documents it fully. The description adds no meaning beyond what the schema supplies, which is the baseline for high-coverage single-parameter tools.

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 uses a specific verb ('Get') with a precise resource: semantic DOM structure, interactive elements, and landmarks of a page. It is clear what the tool returns, but it never contrasts itself with the very similar sibling get_page_content, so an agent must infer the split between structure and content.

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 explicit when-to-use guidance, no prerequisites, and no named alternative (get_page_content is an obvious overlapping choice). At best, the mention of 'structure' and 'landmarks' weakly implies this is for layout/accessibility analysis rather than text extraction.

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