Skip to main content
Glama

remove_widget

Destructive

Remove one widget from a report by its exact id (from get_report). Deterministic — no AI interpretation. Returns the removed widget's configuration so it can be re-created if needed. Requires MCP write actions; without confirm:true it returns a preview.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "reportId": "<reportId>",
      "widgetId": "<widgetId>"
    },
    "name": "remove_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet true to remove it. Omit for a preview. With confirm:true, also pass the preview's previewToken.
reportIdYesReport id (from list_reports).
widgetIdYesExact widget id (from get_report).
previewTokenNoWith confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint annotation it discloses genuinely non-obvious behavior: the operation is deterministic, the removed widget's configuration is returned so it can be re-created, a write scope is required, and calling without confirm:true yields a safe preview. The two-step confirm/preview-token flow is exactly the kind of detail an agent needs before invoking a destructive tool.

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?

Three tight sentences: what it does and by which id, what it returns and that it is deterministic, then the write requirement and preview fallback. Nothing is repeated and the critical destructive/preview condition is front-loaded.

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

Completeness5/5

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

There is no output schema, and the description still tells the agent what comes back (the removed widget's configuration). Combined with the required write scope and the preview/confirm contract, an agent has everything needed to call this destructive tool correctly on the first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds the causal relationship between confirm and the preview outcome plus the recovery value of the call, which goes beyond the field definitions. The previewToken chaining itself is documented in the schema, so no extra credit there.

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?

States a specific verb and resource ("Remove one widget from a report"), pins the identifier semantics (exact id, sourced from get_report), and is clearly distinguishable from sibling mutations like edit_widget or add_widget.

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?

Gives concrete preconditions: the widget id must come from get_report, MCP write actions must be enabled, and omitting confirm returns a preview rather than deleting. It stops short of explicitly contrasting with edit_widget for modification cases, but the when-to-use context is otherwise clear.

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.

Resources