Skip to main content
Glama

decompose_layout_skeleton

Convert wrapper-heavy markup into semantic HTML5 layout skeletons by pruning redundant div chains and inferring Flex/Grid axes plus responsive breakpoints.

Instructions

Prune redundant wrapper div chains (div-soup) into semantic HTML5 landmarks and infer Flex/Grid axes and responsive breakpoints.

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": {
      "markup": "<markup>"
    },
    "name": "decompose_layout_skeleton"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNo
markupYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full burden and does not meet it. It never says whether input markup is mutated or new markup is returned, whether the inference of axes/breakpoints is advisory or applied, or what happens when css is omitted. Only the high-level transformation intent is disclosed.

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?

A single front-loaded sentence with no filler, and the primary action leads. It does bundle two operations (pruning and axis inference) into one clause without signaling their relationship, which slightly muddies the read.

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

Completeness2/5

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

For a two-parameter transformation tool with no annotations, no output schema, and undocumented params, the description omits the essentials an agent needs: return shape, mutation semantics, and the purpose of css. What is present describes intent well but leaves execution underspecified.

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

Parameters2/5

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

Two parameters with 0% schema description coverage, and the description explains neither. It is not stated that 'markup' is the HTML to be decomposed or that 'css' feeds the Flex/Grid and breakpoint inference, leaving the role of the optional parameter entirely to guesswork.

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?

States a specific verb ('Prune') against a concrete resource ('redundant wrapper div chains / div-soup') and names the output form (semantic HTML5 landmarks) plus secondary behavior (inferring Flex/Grid axes and breakpoints). This is distinguishable from the audit/extract siblings, though it never explicitly contrasts itself with them.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as audit_ui_fidelity or synthesize_vibe_component. The agent must infer that this is the rewrite step rather than the inspection step.

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