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.

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 / properties / siteId / description
      Previous value: -"The site ID"New value: +"The ID of the page"
  2. 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 readOnly, idempotent, non-destructive, so the safety profile is covered. On top of that the description discloses non-obvious behavior: fields become null if the version wasn't saved with the sections argument of save_page_content, and the default version resolution falls back from production to latest saved. It does not mention side effects, auth, or pagination, but for a read-only structural getter that is minor.

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-loads the core definition, then return shape, cross-tool relationships, and defaults before errors. Dense with no filler, though the return-shape sentence is long and could be tightened; it earns its length because no output schema exists.

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?

With no output schema, the description carries the burden of explaining what comes back (page-ordered header/sections/footer with ids, headings, CTAs) and it does so fully, plus error strings and default resolution. An agent can invoke and interpret the response without further info.

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, but the description adds real value beyond it: it explains the production-then-fallback resolution order for an omitted version and ties sequencePosition to save_page_content.sections[].sequencePosition. These semantics aren't in the schema, which only says 'Defaults to current production version.'

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 (structure of a landing page version) and enumerates the content returned: header, sections, footer, CTA placements, conversion goals. It also distinguishes itself from siblings by naming get_site and query_cta_performance explicitly.

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?

Gives explicit routing: 'Use get_site for the saved HTML itself and version history' and links CTA text to query_cta_performance to explain when this tool is the right entry point. It also handles the omission/default case and the two failure conditions (version_not_found, page_structure_unavailable), so the agent knows when calling will fail.

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.