Skip to main content
Glama

deleteProduct

Destructive

Delete a shop product together with its options, so members can no longer see or buy it. Deleting is permanent and cannot be undone; orders already placed for it stay. Returns the product as it was before the delete. Get productId from getProducts. Never invent UUIDs; only use values from prior tool responses.

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

Input Schema

NameRequiredDescriptionDefault
productIdYesThe id of the product.

Output Schema

NameRequiredDescriptionDefault
productYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, yet the description still adds real substance: permanence, irreversibility, that existing orders survive, and that the deleted product is returned. Cascade behavior of child options is disclosed, which is not in the schema or 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?

Four short sentences, front-loaded with the destructive outcome, then consequences, then return value, then id sourcing. No filler, and the most decision-relevant fact (permanent, irreversible) appears before the mechanics.

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 with an output schema and full annotation coverage, nothing an agent needs is missing: what is destroyed, what survives, reversibility, return value, and where the id comes from are all covered.

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

Parameters4/5

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

Schema coverage is 100% with a UUID pattern, so the parameter is already well documented. The description adds provenance semantics (source the id from getProducts, never invent UUIDs) that go beyond the schema's bare format constraint.

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?

States a specific verb and resource ("Delete a shop product") plus the cascade scope ("together with its options"), which is the key detail distinguishing it from a soft archive or a plain record removal. An agent can tell this apart from getProduct/updateProduct siblings without opening a schema.

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?

Explicit prerequisite routing: "Get productId from getProducts" plus a strong guardrail against fabricated UUIDs. It lacks an explicit when-not-to-use clause (e.g. archive versus delete, or a warning for products with active subscriptions), which would be needed for a 5.

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.

Resources