Skip to main content
Glama

Delete a saved script

tool_remove
DestructiveIdempotent

Permanently delete a saved script only when the user explicitly requests removal; otherwise retain scripts for reuse.

Instructions

Delete a saved script for good. Only do this when the user asks; keep scripts otherwise so they can be reused.

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": {
      "name": "<name>"
    },
    "name": "tool_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior4/5

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 structured. The description adds genuine value beyond that by stressing permanence ('for good') and a conservative user-intent gate, which discourages speculative deletion. It does not state whether or how the script could be recovered, which is a minor remaining gap.

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 short sentences with no filler, and the destructive/permanent nature is front-loaded before the usage caveat. Every clause earns its place.

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?

For a one-parameter destructive tool with no output schema and partial annotation coverage, the description adequately conveys permanence and the user-consent gate. It is incomplete on the one thing the schema does not explain: what 'name' refers to and what a successful deletion returns.

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

Parameters2/5

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

There is a single required parameter 'name' with 0% schema description coverage, so the description carries the full burden of explaining it. The description says only 'a saved script' and never clarifies whether 'name' is the script's display name, an identifier, or how to obtain it, so an agent gains no parameter meaning here.

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?

The description states a specific verb and resource: 'Delete a saved script,' with 'for good' clarifying permanence. It is clearly distinguishable from the edit/write/list siblings, though it never names them explicitly.

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?

'Only do this when the user asks; keep scripts otherwise so they can be reused' provides an explicit when-to-use and when-not-to-use gating condition. It stops short of naming the alternative action (edit or reuse a script via a sibling tool), but the intent is unambiguous.

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