Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Delete script

delete_script
DestructiveIdempotent

Permanently delete a saved script when it is no longer needed; use write_script to replace its source instead if it must be updated.

Instructions

Delete one saved script permanently. Use when: a script is no longer needed. Instead: write_script to replace its source. Requires: --mcp-allow-scripts (stdio only); not in paranoid mode. Behavior: destructive, no trash. A repeat succeeds with deleted false. A bad name fails. Time limit: 15 s. Returns: {name, deleted (false: there was no such script)}.

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": "delete_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe script's name, from list_scripts: letters, digits, '_' and '-', at most 80 characters, without '.py', e.g. 'disk_report'.

Output Schema

NameRequiredDescriptionDefault
nameYes
deletedYesfalse: there was no such script

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive and idempotent, but the description goes materially further: no trash/recovery, repeat calls succeed returning deleted=false, a bad name fails, and a 15 s time limit applies. The environment prerequisites (stdio-only flag, paranoid-mode exclusion) are operationally critical and appear nowhere in the annotations.

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?

Labeled clauses (Use when / Instead / Requires / Behavior / Returns) front-load the action and route every remaining fact to a scannable slot. No sentence restates the tool name or duplicates annotation content without adding to it.

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?

For a single-parameter destructive tool, the definition covers prerequisites, irreversibility, retry semantics, error behavior, timing, and return shape. Even with an output schema present, the inline return summary lets an agent branch on deleted=false without a schema lookup.

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% and the name property already documents the pattern, length cap, and '.py'-free convention with an example. The description adds only the failure semantics for a bad name, so it neither compensates for nor meaningfully extends the schema — baseline 3 applies.

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?

"Delete one saved script permanently" names a specific verb (delete), resource (saved script), and scope (one, permanent). It is immediately distinguishable from siblings such as write_script, read_script, and list_scripts.

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

Usage Guidelines5/5

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

Explicit when-to-use ("a script is no longer needed") and an explicit alternative ("write_script to replace its source"), which steers an agent away from delete when the intent is modification. The Requires line adds another gating condition (--mcp-allow-scripts, not in paranoid mode) that determines whether the call is even valid.

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