Skip to main content
Glama

suggest_fix

Generates copy-pasteable code fixes for validation issues like shadow-dom or token-fallback. Provide issue type, kind, and original code to receive a corrected snippet with explanation.

Instructions

Generates concrete, copy-pasteable code fixes for validation issues. Pass the issue type (shadow-dom, token-fallback, theme-compat, method-call, event-usage, specificity, layout), the specific issue kind, and the original code — returns a corrected code snippet with an explanation. NOTE: styling_preflight and validate_css_file now embed fixes inline in each issue — only call suggest_fix directly for issues from other validators or when you need a fix for code not already validated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesThe category of validation issue.
issueYesThe specific issue kind (e.g. "descendant-piercing", "missing-fallback", "hardcoded-color", "property-as-method", "react-custom-event").
originalYesThe original problematic code.
tagNameNoOptional tag name of the component.
partNamesNoOptional list of CSS part names exposed by the component.
propertyNoOptional CSS property name for token/theme fixes.
memberNameNoOptional method/property name for method call fixes.
suggestedNameNoOptional corrected name for typo fixes.
eventNameNoOptional event name for event usage fixes.
tokenPrefixNoOptional token prefix from the component library (e.g. "--hx-", "--fast-", "--md-"). When provided, suggested replacement tokens use this prefix. Get this from diagnose_styling.

Tool Definition Quality

Score is being calculated. Check back soon.

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/bookedsolidtech/helixir'

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