Skip to main content
Glama

suggest_improvements

Analyze HTML code to receive AI-powered design improvement suggestions for accessibility, performance, UX, aesthetics, and responsiveness based on your context and target audience.

Instructions

Get AI-powered suggestions for design improvements

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesHTML code to analyze
contextNoContext about the design goals
targetAudienceNoTarget audience for the design
focusAreasNoAreas to focus improvements on

Implementation Reference

  • The core handler function that executes the 'suggest_improvements' tool logic, returning a structured content response with placeholder suggestion text.
    export async function suggestImprovements(args: SuggestionOptions) { return { content: [ { type: 'text', text: `Generated suggestions for ${args.context || 'general'}\nFocus: ${args.focus || 'all'}` } ] }; }
  • Input schema validation for the suggest_improvements tool parameters.
    inputSchema: { type: 'object', properties: { html: { type: 'string', description: 'HTML code to analyze' }, context: { type: 'string', description: 'Context about the design goals' }, targetAudience: { type: 'string', description: 'Target audience for the design' }, focusAreas: { type: 'array', items: { type: 'string', enum: ['accessibility', 'performance', 'ux', 'aesthetics', 'responsiveness'] }, description: 'Areas to focus improvements on' } }, required: ['html'] }
  • src/index.ts:331-360 (registration)
    Tool registration object added to the TOOLS array, used by listTools endpoint.
    { name: 'suggest_improvements', description: 'Get AI-powered suggestions for design improvements', inputSchema: { type: 'object', properties: { html: { type: 'string', description: 'HTML code to analyze' }, context: { type: 'string', description: 'Context about the design goals' }, targetAudience: { type: 'string', description: 'Target audience for the design' }, focusAreas: { type: 'array', items: { type: 'string', enum: ['accessibility', 'performance', 'ux', 'aesthetics', 'responsiveness'] }, description: 'Areas to focus improvements on' } }, required: ['html'] } },
  • Dispatch handler in the CallToolRequestSchema that routes requests for 'suggest_improvements' to the specific implementation function.
    case 'suggest_improvements': return await suggestImprovements(args as unknown as SuggestionOptions);
  • Type definition for SuggestionOptions used in the tool handler signature.
    export interface SuggestionOptions { html: string; context?: 'landing-page' | 'dashboard' | 'component' | 'form' | 'navigation'; focus?: 'accessibility' | 'performance' | 'design' | 'ux' | 'seo' | 'all'; priority?: 'critical' | 'important' | 'nice-to-have' | 'all'; framework?: 'react' | 'vue' | 'svelte' | 'html'; targetAudience?: string; businessGoals?: string[]; }

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/Tai-DT/mcp-tailwind-gemini'

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