MCP server exposing Pure Responsive DIV Generator as programmable tools
Strong tool naming (verb_noun pattern throughout) and comprehensive parameter schemas with proper types and descriptions. All 20 tools have clear descriptions (avg ~150 chars). Schemas use Zod with enums for constrained inputs (device, direction). However, output schemas are not formally documented, responses are JSON text blobs without declared field structures. Error handling is minimal (generic 'not found' messages). No tool annotations (readOnlyHint, destructiveHint). Missing recovery guidance in error messages. Composition is sound: tools are single-responsibility, chainable via IDs. Descriptions could be more LLM-optimized (e.g., set_props lacks guidance on when to use vs build_tree).
Create a whole subtree from one compact nested spec — the fast path for building a page. Each node is { class, name?, children?[] } plus an optional props object for any tier of the device ladder, e.g. { class: 'hero', desktop: {...}, tablet: {...}, mobileSm: {...} }. Those objects take the same properties as set_props. Prefer this over dozens of create_div/set_props calls: the shipped examples would otherwise need 31-64 round trips each.
Duplicate a div and all its children
Create a new child div inside a parent node
Delete a div node and all its children
Export the full HTML document with embedded responsive CSS
Export the tree and breakpoints as JSON for reimport
Output schemas not formally documented. Tools return JSON text blobs (e.g., list_tree returns formatted strings, get_node returns stringified JSON) without declared field structures. LLMs cannot reliably parse or chain results.
Error messages lack recovery guidance. Errors like 'Error: node not found' or 'Error: cannot move' do not tell the LLM what to do next (e.g., 'Try list_tree() to find valid node IDs').
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Destructive tools (delete_div, reset_all) and read-only tools (list_tree, get_node) are not marked. LLMs cannot distinguish safe from risky operations without reading descriptions.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | 2026-07-28+ | v2 |
Get the current responsive breakpoint configuration
Get a single node's full state including responsive properties
Get undo/redo stack status
Import a tree and breakpoints from JSON
Get the full div tree structure
Move a div up or down within its siblings
Redo the last undone mutation
Clear the entire tree and reset to defaults
Clear all responsive overrides for a device breakpoint on a node
Update the responsive breakpoint pixel values
Set responsive properties on a div for one tier of the device ladder. Each max-width tier inherits from the tier above it, so you only set what differs. Props can include: display, columns, gap, flexDirection, flexWrap, justifyContent, alignItems, horizontalAlign, alignSelf, width, height, maxWidth, maxHeight, minHeight, aspectRatio, paddingTop/Right/Bottom/Left, marginTop/Right/Bottom/Left, position, top/right/bottom/left, zIndex, overflow, backgroundColor, borderWidth, borderStyle, borderColor, borderRadius, boxShadow, opacity, transform, transition, backdropFilter, span, flexGrow, flexShrink, flexBasis, order, hidden, direction, gridAutoMode, gridMinColWidth, justifyItems, alignContent
Split a div into N equal grid columns
Undo the last mutation
Wrap a div inside a new parent div
set_props description is verbose (500+ chars) and lacks guidance on when to use vs build_tree. LLMs may not understand that build_tree is the preferred fast path for bulk operations.
No confirmation or dry-run pattern for destructive operations (delete_div, reset_all). Agents can irreversibly delete content without a safety gate.