Skip to main content
Glama

delete_commerce_product

Destructive

Delete a product and its stock counters.

Fails with a 409 while any order referencing the product is still open — fulfil, refund, or cancel those orders first.

Args: project_id: The project ID. product_id: The product ID to delete.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes
project_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered; the description adds genuine behavioral value by disclosing the cascading deletion of stock counters and the 409 conflict condition with open orders, which annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The two substantive sentences are front-loaded and zero-waste; the trailing Args block is mostly redundant given the schema, slightly diluting an otherwise tight description.

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 tool with an output schema and full annotation coverage, the cascade effect and conflict semantics are the key missing pieces an agent needs, and both are supplied. Only parameter provenance/format guidance is absent.

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

Parameters2/5

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

Schema description coverage is 0% and both parameters are required, so the description carries the full burden — yet it only restates the names ('The project ID', 'The product ID to delete') with no format, ID source, or lookup guidance. It adds essentially nothing beyond the schema's property titles.

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 product') and adds the non-obvious cascade scope ('and its stock counters'), which distinguishes it from delete_commerce_variant, delete_commerce_collection, and other delete_* siblings.

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?

Gives an explicit precondition and failure mode: 409 while any order referencing the product is open, plus the remediation path (fulfil, refund, or cancel first). It does not name alternative tools, but the when-to-use context is clear and actionable.

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