Skip to main content
Glama

Get page structure

get_page_structure
Read-onlyIdempotent

Get the structural composition of a landing page version — sections, CTA placements, and conversion goals.

Returns, in page order, the page-level , each , and the page-level , each with its id, first heading, and the CTAs inside it (text, link, type, and whether it is marked data-cta="primary"). CTAs outside those elements are listed in ctasOutsideSections. CTA text matches what query_cta_performance reports, so you can tell where the clicked CTA sits. If the version was saved with the sections argument of save_page_content, each section also carries that description, pattern ID, layout type, and fold position; otherwise those fields are null. sequencePosition matches sections[].sequencePosition in save_page_content. Use get_site for the saved HTML itself and version history. If version is omitted, the current production version is used, then the latest saved version as fallback. If the requested version does not exist, the tool returns version_not_found. If the page has no saved versions yet, it returns page_structure_unavailable.

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": {
      "siteId": "<siteId>"
    },
    "name": "get_page_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesThe ID of the page
versionNoSpecific version number. Defaults to current production version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The site ID"New value: +"The ID of the page"
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: the ordered return shape, null fields when save_page_content's sections argument was not used, the version fallback chain, and two named error results (version_not_found, page_structure_unavailable). It stops short of pagination or size limits, which are unlikely for a single-page structure call.

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?

Front-loaded with purpose and return shape, then cross-tool linkage, then fallback and error behavior — a logical order. It is dense and long-ish, but nearly every sentence carries information an agent needs; only the 'conversion goals' mention in the opening line is never expanded later.

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

Completeness5/5

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

There is no output schema, so the description must carry return-value semantics, and it does so thoroughly: element order, per-element fields, the ctasOutsideSections fallback bucket, and nullability rules for section metadata. Combined with the error codes and version fallback, an agent has everything needed to call and interpret it.

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

Parameters4/5

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

Schema coverage is 100% so the baseline is 3, and the description meaningfully adds to it: the version-omission fallback order and the guarantee that sequencePosition matches sections[].sequencePosition in save_page_content. The siteId parameter itself is not elaborated beyond the schema, keeping this just above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Get the structural composition of a landing page version — sections, CTA placements, and conversion goals' — and enumerates exactly what is returned (header, sections, footer, ctasOutsideSections). It also distinguishes itself from the closest sibling by saying to use get_site for the saved HTML and version history.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use get_site for HTML and version history, and note that CTA text matches query_cta_performance so results can be correlated. It also defines default behavior when version is omitted (production version, then latest saved) and what happens when no versions exist.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.