Skip to main content
Glama

snippet_delete

Destructive

Permanently deletes a snippet by ID, so you can remove unwanted or unused code snippets from a WordPress site.

Instructions

Delete a snippet permanently by ID.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

B3.3/5.0
Behavior3/5

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

The destructiveHint=true annotation already declares this is a destructive operation, so the description only needs to add context. 'Permanently' does add value by confirming there is no trash/undo path, but nothing is said about what else is removed (revisions, references), error behavior for a missing ID, or required permissions.

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?

One short sentence, front-loaded with the verb and resource, with the destructive qualifier attached to the action. Nothing is redundant or padded.

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 delete tool with a destructiveHint annotation and no output schema, this is close to sufficient. It still omits what a permanent delete implies for related data and how failures are surfaced, which matter for an irreversible 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 description coverage is 0% for the single 'id' parameter, so the description carries some burden. 'By ID' does clarify that the argument is the snippet identifier rather than, say, a revision ID, but it gives no format or validation detail beyond the schema's integer type.

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 ('Delete a snippet') plus the key qualifier 'permanently', so an agent can immediately separate it from snippet_get, snippet_list, snippet_save, and snippet_toggle. It falls short of a 5 only because it offers no explicit contrast with the siblings it could be confused with (e.g. snippet_toggle).

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of snippet_toggle as the non-destructive alternative, and no prerequisites. The word 'permanently' faintly signals irreversibility, but the agent is left to infer any usage policy.

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