Skip to main content
Glama

hachidori_delete_userscript

Destructive

Delete an installed userscript by ID and reload open pages so already-running code stops. Use the revision from the latest settings to avoid conflicts.

Instructions

Delete one installed userscript by ID. Reload open pages to stop code that already ran.

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": {
      "id": "<id>",
      "baseRevision": "<baseRevision>"
    },
    "name": "hachidori_delete_userscript"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
baseRevisionYesRevision from the latest get_settings; conflicts require reading again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=false, so the safety profile is covered. The description adds genuinely new behavioral context: code from the deleted userscript that already executed persists in open pages until reload — an effect not expressed in any annotation. It stops short of stating that deletion is permanent/irreversible or what happens on a revision conflict.

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, action first, caveat second, with zero filler. Nothing could be removed without losing information.

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 destructive two-parameter mutation with no output schema and existing annotations, the description covers the essential action and the main side effect. A note on irreversibility and on whether the baseRevision is validated before deletion would make it complete.

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 50%: baseRevision is well documented in the schema (conflict requires re-reading get_settings), while id is only named 'by ID' — self-evident but undescribed. The description adds no syntax, format, or lookup guidance beyond what the schema supplies.

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?

States a specific verb and resource with scope: 'Delete one installed userscript by ID.' An agent can distinguish this from hachidori_save_userscript or hachidori_list_userscripts without opening the schema, though it never names an alternative explicitly.

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

Usage Guidelines3/5

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

The second sentence gives post-deletion guidance ('Reload open pages to stop code that already ran') but nothing about when to choose deletion versus saving/overwriting, nor any prerequisite or confirmation requirement. Usage is implied by the verb rather than explained.

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