Skip to main content
Glama

ERP: Delete a product photo

erp_product_photo_delete
Destructive

Delete ONE photo of a product (the stored file and its gallery entry; the remaining photos keep their order and the first becomes main) — the product page gallery's delete. 'photo' = its number in the gallery (1 = main) or its file name. Cannot be undone: the person confirms the deletion in @OrgLinesBot. One photo per call. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "item": "<item>",
      "photo": "<photo>"
    },
    "name": "erp_product_photo_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes
photoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Well beyond annotations: discloses the irreversibility, that the stored file and gallery entry are both removed, that remaining photos keep order and the first becomes main, and that confirmation happens in @OrgLinesBot. Crucially it discloses the PROPOSED-only protocol returning status='confirmation_required' with action_id and plan_token before confirm_action writes — exactly the mutation semantics destructiveHint=true alone cannot convey. This is a top-tier disclosure; the only thing it approximates rather than enumerates is what happens if a photo reference is invalid.

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?

Front-loaded with the verb and target, then constraints, then the confirmation protocol in a labeled clause. Dense but every sentence carries a distinct fact; no filler.

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?

Complete on the risky dimension — mutation scope, side effects, irreversibility, and the mandatory confirm step are all covered without an output schema. The gap is the unexplained 'item' parameter, which matters for a 2-required-param destructive tool.

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 0%, so the description carries the full burden, and it fully defines 'photo' (gallery number, 1 = main, or file name) plus the one-at-a-time constraint that shapes how 'photo' must be supplied. It does not explain what 'item' accepts (product id? SKU? name?), leaving the primary required identifier undocumented.

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?

Specific verb plus resource plus scope: "Delete ONE photo of a product (the stored file and its gallery entry)". It also names the boundary against adjacent capabilities by describing the gallery-entry behavior and by implication distinguishing itself from reordering tools via "the remaining photos keep their order and the first becomes main".

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 clear operational context: one photo per call, photo identified by gallery position or filename, and it routes the agent into the confirm_action flow rather than executing directly. No explicit exclusion naming other delete/reorder siblings, so not quite a top score, but the when-to-use context is unambiguous.

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