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").
Behavior2/5

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

No annotations are provided, so the description must fully convey behavioral traits. It indicates the tool is a detector (read-only), but does not mention any side effects, permissions, or rate limits. The description is sufficient for basic understanding but lacks depth on non-obvious behavior.

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?

Two sentences convey the core purpose and mechanism efficiently. The first sentence provides a clear action and examples, the second explains the parsing approach. No redundant or extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema or annotations, the description explains the detection logic but omits what the tool returns (e.g., list of conflicts, error messages). It does not mention prerequisites or side effects. It is adequate but not comprehensive.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds general context for the tool's operation but does not elaborate on parameter specifics beyond what the schema provides. For example, it does not explain how 'htmlText' should be formatted or what 'tagName' values are valid.

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 detects conditional attributes used without guard conditions, with concrete examples ('target' without 'href', 'min'/'max' on non-number inputs). It also explains the parsing mechanism ('Only used when' patterns). This distinguishes it from sibling tools like check_html_usage, which likely have broader scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for validating attribute interactions in custom elements, but does not explicitly state when to use this tool versus alternatives (e.g., check_html_usage or check_event_usage). No exclusions or context are provided.

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

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