Delete component
delete_componentHTML-first sites: delete an unused component (refused while anything renders it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| component | Yes | Component id from list_components. |
delete_componentHTML-first sites: delete an unused component (refused while anything renders it).
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| component | Yes | Component id from list_components. |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description adds the non-obvious behavior that the operation is rejected under referential dependency. It does not say whether deletion is reversible or what the refusal error looks like, keeping it out of 5 territory.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single sentence with zero filler; the scope qualifier is front-loaded and the failure condition is packed into a clause rather than a separate sentence.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a two-parameter destructive tool with full schema coverage and annotations covering the safety profile, this is largely complete. The only missing piece an agent could want is post-deletion state (recoverable or not, cascade effects).
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% — both 'id' (site id) and 'component' (component id from list_components) are documented in the schema. The description adds no format, sourcing, or constraint detail beyond that, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('delete an unused component') plus a scoping qualifier ('HTML-first sites'), which cleanly separates it from rename_component, list_components and delete_page in the sibling list.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The parenthetical 'refused while anything renders it' is an explicit precondition telling the agent when this call will fail, which is real usage guidance. It stops short of naming an alternative (e.g. detach/rewrite blocks first) or of saying how to confirm a component is unused before calling.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.