Skip to main content
Glama

check_attribute_conflicts

Identifies missing guard conditions for conditional attributes in custom elements, such as 'target' without 'href' or 'checked' without type='checkbox'.

Instructions

Detects conditional attributes used without their guard conditions — catches "target" without "href", "min"/"max" on non-number inputs, "checked" without type="checkbox", and other attribute interaction mistakes. Parses CEM member descriptions for "Only used when" and "Only applies to" patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryIdNoOptional library ID to target a specific loaded library instead of the default.
htmlTextYesThe HTML code containing the component to check for attribute conflicts.
tagNameYesThe custom element tag name to validate against (e.g. "sl-button").

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