Skip to main content
Glama

Compose a page

compose_page
Read-only

Designs one page as finished TSX files: the page file, one file per block (nav, hero, sections, footer) and the site layer CSS, laid out for the direction's world, responsive from phone to desktop, accessible, tokens only, real copy. Returns the files, the components to install with fit_component, the copy to confirm, and a short page summary. Check the page with review_page before you show it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compose_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNoOverride the brief's headline, subline or call to action here.
pageNoWhich page of the plan, by slug ("" or "home" for the home page, "pricing", "about"...).
typeNoThe site type from plan_site (default landing).
briefNoUsed when there is no direction_id yet: brand, app (required), audience, mood, colors, theme, headline, subline, cta, avoid, and optionally world.
blocksNoOptional: your own block order instead of the plan's.
targetNonext: Next.js app router files (default). vite: Vite React files.
contentNoThe site's real content, in the user's words. Blocks that need facts (numbers, quotes, prices, names) are only planned when they are given here; nothing is invented.
direction_idNoThe direction_id from set_direction (or create_direction).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description must carry the rest, and it does: it discloses what is returned (files, components to install, copy to confirm, page summary) and the quality constraints applied (responsive, accessible, tokens only, real copy). It never clarifies whether files are written to disk or only returned, which matters for a 'compose' tool, but 'Returns the files' is consistent with readOnlyHint.

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 sentences, front-loaded with the deliverable and then the returned artifacts and next step. Density is high but nearly every clause carries a constraint or routing instruction; only the quality adjective list ('responsive... accessible') is somewhat compressed rather than explained.

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 an 8-parameter, deeply nested tool with no output schema, the description supplies the missing return-value picture and the follow-up tool to use. Gaps remain around the direction_id-versus-brief precedence for calling it and any failure conditions, though the schema covers some of that ground.

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%, so the schema already explains every parameter including the nested brief and content objects. The description adds only indirect meaning, such as 'real copy' for the content payload and 'for the direction's world' relating to direction_id, which is useful framing but no new parameter-level guidance.

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 — 'Designs one page as finished TSX files' — and enumerates the artifacts (page file, one file per block, site-layer CSS). The page-level scope, contrasted with the block/section composers among its siblings, lets an agent tell what it produces without opening the 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 an explicit downstream workflow: 'Check the page with review_page before you show it' and 'the components to install with fit_component'. It does not state when to prefer this over compose_block or compose_section, so the boundary between whole-page and partial composition is left to inference.

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