Skip to main content
Glama

Remove what a supplier calls a product

remove_product_supplier_reference
DestructiveIdempotent

Deletes data: removes one supplier's code for a product, as the person who connected this app, and records it in the organization's audit log. A line with that code is then no longer read as the product, and lines already on shipments that it had confirmed are matched again. Use it only when the user asks to remove or unmap a supplier's code, and say which supplier, code and product before calling it. It can be added again with add_product_supplier_reference. Get the reference_id (prf_...) from the supplier_references of list_products, or from the answer of add_product_supplier_reference. Answers with the product as it is now. Only for an organization that keeps a product catalogue.

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": {
      "reference_id": "<reference_id>"
    },
    "name": "remove_product_supplier_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
reference_idYesA supplier reference id such as "prf_8", from the `supplier_references` of list_products.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description is not needed to establish that this is a destructive write. Instead it adds context annotations cannot carry: the action runs as the connected app user, it is written to the organization's audit log, previously confirmed shipment lines are re-matched, and the removal is reversible via the add tool.

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?

Leads with the 'Deletes data:' warning so the risk is front-loaded, then purpose, conditions, recovery path, discovery of the id, and return value. Dense but every clause carries information an agent needs before invoking a destructive tool; nothing is redundant.

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?

With one parameter, full schema coverage and a stated return value ('answers with the product as it is now'), the definition is nearly self-sufficient despite no output schema. Only minor gaps remain, such as what happens if the reference_id is already gone or invalid.

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%, so the single parameter is already documented, but the description adds real provenance beyond the schema text: the id can come from the `supplier_references` of list_products or from the answer of add_product_supplier_reference. That extra retrieval route is useful for an agent that just created a reference.

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 ('removes one supplier's code for a product') and scopes it to a single supplier's mapping rather than the product itself. That is enough for an agent to separate it from add_product_supplier_reference or update_product without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit use condition ('only when the user asks to remove or unmap a supplier's code'), a precondition on confirmation ('say which supplier, code and product before calling it'), and names the sibling that reverses it (add_product_supplier_reference). It also adds an applicability gate: only for organizations that keep a product catalogue.

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