Skip to main content
Glama

Describe page layout

describe_layout
Read-onlyIdempotent

Returns the page's columns: each row’s coordinate, column ids, widths (with legal minSpan/maxSpan), a one-line summary of each column and what it can do now. Far smaller than get_page (no rich-text bodies). Also returns the version read (the layout tools’ baseVersion), rootId (the parent for a new top-level section), "anchors" ([{id, heading?}]) and access. PHONES: each row stacks its columns full width on a phone; a column reports phone "hidden" or "first" when set (apply_ops setProps {phone}), and phoneCheck lists what will look wrong there, with ops to fix it where it can. Rows are 12 twelfths wide (columns at least 2); the tool keeps every row totalling 12. Full reference: get_reference {topic:"layout"}.

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>",
      "pageId": "<pageId>"
    },
    "name": "describe_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesPage id from get_site, e.g. "page-home"
siteIdYesSite id (from list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world, so safety is covered. The description still adds substantial behavioral content: it enumerates the response payload (columns, version, rootId, anchors, access), explains phone stacking and phone 'hidden'/'first' props, and states the invariant that rows total 12 twelfths with columns at least 2. This goes well past the annotations.

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 the primary payload and efficient throughout; each sentence carries distinct information about response fields, phone behavior, or row constraints. It is very dense — parenthetical stacks and the 'PHONES:' shout label make it harder to parse than necessary, but little is truly redundant.

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 carries the full burden of describing return values, and it does: column metadata, version/baseVersion, rootId, anchors, access, plus phoneCheck. Combined with the row-width invariant and the reference pointer, an agent has everything needed to call it and interpret the result.

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% and both parameters (siteId, pageId) are documented in the schema with examples and a pattern. The description adds no additional meaning about how these ids are used, so the schema does the work and a baseline 3 applies.

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?

Opens with a specific verb and resource ("Returns the page's columns") and immediately names the contents: coordinates, column ids, widths with minSpan/maxSpan, one-line summaries. It explicitly distinguishes itself from the sibling get_page by being "far smaller than get_page (no rich-text bodies)", so an agent can choose without opening a schema.

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

Usage Guidelines4/5

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

Gives clear context for use: read the layout before editing (version read is the layout tools' baseVersion), rootId is the parent for a new top-level section, and phoneCheck identifies what will look wrong with fixes. The get_page contrast functions as a partial when-not. What's missing is an explicit statement of the precondition/sequence relative to apply_ops.

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.

Resources