Skip to main content
Glama

Delete resource

drupal_delete_resource
Destructive

Delete a resource by UUID. JSON:API: DELETE /jsonapi/{entity_type}/{bundle}/{uuid} → 204 (empty body). Returns a small confirmation.

Input Schema

NameRequiredDescriptionDefault
uuidYesThe entity UUID (JSON:API uses the UUID, never the numeric id).
bundleYesThe bundle machine name, e.g. "article", "tags", "user".
entity_typeYesThe entity type machine name, e.g. "node", "taxonomy_term", "user".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already set destructiveHint=true, and the description adds genuinely useful behavioral detail: the exact HTTP verb/path and the '204 (empty body)' outcome with a small confirmation. It stops short of noting irreversibility, cascading effects (e.g., deleting a taxonomy_term with children), or failure modes.

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 compact clauses: purpose, endpoint contract, and return expectation. Nothing is wasted and the key action is front-loaded in the first sentence.

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?

No output schema exists, and the description compensates by stating the response shape ('204 empty body, small confirmation'). For a destructive mutation the coverage is good; a note on permanence or permission requirements 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 100%, so the three parameters are fully documented in the schema. The description reinforces that the UUID (not numeric id) is what JSON:API uses and shows the {entity_type}/{bundle}/{uuid} ordering, which is helpful but largely mirrors the schema.

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 resource by UUID') plus the exact JSON:API endpoint, so the operation is unambiguous against create/get/update/list siblings. It doesn't explicitly differentiate itself from siblings, but 'delete' is inherently distinct in the naming.

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?

Usage is implied by the verb — the agent knows deletion happens here — but there is no explicit when-to-use, when-not-to-use, or pointer to alternatives (e.g., drupal_update_resource vs delete). No prerequisites such as required permissions are mentioned.

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.