Skip to main content
Glama

analyze_design

Analyzes HTML and CSS to identify design improvements, responsive issues, performance impacts, and accessibility gaps using AI.

Instructions

Analyze design with AI for improvements and best practices

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": {
      "html": "<html>"
    },
    "name": "analyze_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNoAdditional CSS code (optional)
htmlYesHTML code to analyze
contextNoDesign context or purpose
checkResponsiveNoCheck responsive design
checkPerformanceNoCheck performance implications
checkAccessibilityNoCheck accessibility compliance

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/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 mentions 'AI analysis' but doesn't explain what that entails—whether it's a simple check, a detailed report, or something else. There's no information about execution time, rate limits, authentication requirements, or what happens to the input data. For a tool with 6 parameters and no annotation coverage, this leaves significant behavioral gaps.

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?

The description is a single, efficient sentence that gets straight to the point without unnecessary words. It's appropriately sized for a tool with this complexity, though it could be more front-loaded with key details. There's no wasted language, making it easy to parse quickly.

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?

Given the tool's complexity (6 parameters, no annotations, no output schema), the description is incomplete. It doesn't explain what the analysis outputs, how results are formatted, or what 'improvements and best practices' entail. Without annotations or output schema, the agent lacks crucial information about the tool's behavior and results, making this description inadequate for confident tool invocation.

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?

The schema description coverage is 100%, with all parameters well-documented in the schema itself. The description adds no additional parameter semantics beyond what's already in the schema—it doesn't explain relationships between parameters, provide examples, or clarify how 'context' interacts with analysis. Given the high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool 'analyze design with AI for improvements and best practices', which provides a general purpose but lacks specificity about what 'design' means or what types of improvements are offered. It doesn't clearly distinguish from sibling tools like 'suggest_improvements' or 'optimize_classes', leaving ambiguity about when to use each. The verb 'analyze' is clear, but the resource 'design' is vague without further context.

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?

The description provides no guidance on when to use this tool versus alternatives like 'suggest_improvements' or 'optimize_classes'. There's no mention of prerequisites, specific scenarios where this analysis is appropriate, or any exclusions. The agent must infer usage from the tool name and parameters alone, which is insufficient for effective tool selection.

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