Skip to main content
Glama

SnapWidget

Delete Widget

delete_widget
Destructive

Deletes a widget. A site that still has its code shows an empty widget. A widget with views in the last 7 days needs confirm: true; ask the user first. The widget's accounts and review sources stay.

Input Schema

NameRequiredDescriptionDefault
confirmNoTrue: delete it also when a site showed it in the last 7 days.
widget_idYesThe widget's id (the id in list_widgets).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With destructiveHint=true already declared, the description still adds real value: it explains the visible outcome on embedded sites (empty widget rather than a broken embed) and that accounts and review sources survive the deletion. It never states that the deletion is irreversible or what the call returns, which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, action front-loaded, with the risky-confirm rule before the side-effect notes. The phrasing is slightly telegraphic ("a site that still has its code") but no sentence is wasted.

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

Completeness4/5

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 a fully described schema, this covers the confirmation gate, the embed-site outcome, and preserved related data. Missing only reversibility and the response shape, which matter for a delete operation.

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 coverage is 100%, so both params are already documented and the baseline is 3. The description merely restates the confirm rule already in the schema's confirm description; its only marginal addition is the instruction to ask the user first.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Deletes a widget" gives a specific verb plus resource, and the widget resource is clearly distinct from sibling delete tools like delete_review and delete_campaign. It stops short of any scope statement (permanent? cascade?) that would raise it to a 5.

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

Usage Guidelines4/5

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

The description states a concrete precondition: if the widget had views in the last 7 days the agent must pass confirm: true and ask the user first. That is explicit when/how guidance, but no alternatives (e.g., update_widget to disable instead) are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.