Skip to main content
Glama
circuitry-dev

Circuitry MCP Server

Official

layout.analyze

Detect and resolve layout issues like overlapping elements, content overflow, and misplacement after editing components in Circuitry MCP Server.

Instructions

Analyze and fix layout issues after editing components.

Use for: Fixing overlaps, repositioning elements, adjusting sizes after edits. Don't use for: Initial creation - use layout.createSection which handles positioning automatically.

Use autoFix: true to automatically apply fixes.

Issues detected:

  • Overlapping elements

  • Footer/header misplacement

  • Content overflow beyond screen

  • Elements clipped by screen edges

Workflow:

  1. Create with layout.createSection (handles positioning)

  2. After edits, use layout.analyze({ autoFix: true }) to fix issues

  3. Use screen.capture to verify

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
screenIdNoScreen ID or name to analyze (uses selected screen if not specified)
autoFixNoWhen true, automatically apply suggested fixes and return appliedFixes showing what changed
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: the tool analyzes and fixes layout issues, can auto-apply fixes with 'autoFix: true', and returns 'appliedFixes' when autoFix is used. It also mentions using a selected screen if 'screenId' is not specified. However, it lacks details on error handling, performance implications, or what happens without autoFix.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (purpose, usage guidelines, issues detected, workflow), uses bullet points for readability, and every sentence adds value without redundancy. It is appropriately sized and front-loaded with the core purpose, making it efficient and easy to scan.

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?

Given no annotations and no output schema, the description does a good job covering the tool's purpose, usage, and parameters. It provides a workflow and links to siblings, but lacks details on output format (e.g., what 'appliedFixes' contains) and error cases. For a tool with 2 parameters and moderate complexity, it's mostly complete but could benefit from output information.

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 description coverage is 100%, so the schema already documents both parameters. The description adds value by explaining the practical use of 'autoFix: true' to automatically apply fixes and return appliedFixes, and implies 'screenId' is optional with a default (selected screen). It doesn't provide additional syntax or format details beyond the schema, but the context enhances understanding.

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?

The description clearly states the tool's purpose with specific verbs ('Analyze and fix layout issues after editing components') and distinguishes it from siblings by explicitly contrasting with 'layout.createSection' for initial creation. It provides concrete examples of issues detected (overlaps, misplacement, overflow, clipping), making the purpose highly specific and differentiated.

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?

The description includes explicit 'Use for' and 'Don't use for' sections, clearly stating when to use this tool (after edits to fix issues) versus alternatives (use 'layout.createSection' for initial creation). It also provides a workflow with step-by-step guidance, including when to use sibling tools like 'screen.capture' for verification.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/circuitry-dev/circuitry-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server