Skip to main content
Glama

ERP: Add photos to a product

erp_product_photo
Destructive

Attach photos to a catalog item: the photos the person sent to the bot (their intake captures — the #numbers in «latest intake captures»; never invent one). 'main'=true makes the first new photo the item's main picture (it is main anyway when the item had none). No photo sent yet → ask them to send it in this chat first. Proposed write: one card. 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>",
      "capture_ids": "<capture_ids>"
    },
    "name": "erp_product_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes
mainNo
capture_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the write/non-read nature is given. The description adds genuinely new behavior: the proposal/confirmation handshake with status='confirmation_required', action_id and plan_token, plus the 'one card' shape of the proposal. What it does not add is what 'destructive' means here (does adding a photo displace an existing main picture?), which is the one safety-relevant fact annotations can't convey.

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?

It is dense and front-loaded, opening with the action and ending with the mandatory confirmation path. The telegraphic fragments ('Proposed write: one card') cost a little readability, but almost every clause carries operational information and nothing is padding.

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 mutation with no output schema, it still discloses what the call returns (status, action_id, plan_token) and the follow-up tool, which is what an agent needs to complete the flow. The remaining gap is the effect on an existing main photo when main=true, which matters given destructiveHint=true.

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?

With 0% schema coverage the description carries the full burden and largely does it: capture_ids is explained as the #numbers from «latest intake captures» with a 'never invent one' prohibition, and main is given real behavior ('first new photo becomes the main picture, and it is main anyway when the item had none'). The item parameter is never explained (name vs id vs slug), and the 1-10 cap on capture_ids is left to 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?

The opening clause gives a specific verb and resource: 'Attach photos to a catalog item,' and immediately narrows the source of those photos to the user's intake captures. It is unambiguous about what the tool does, though it never explicitly contrasts itself with siblings like website_set_photo or erp_product_update.

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?

It gives a clear pre-condition branch ('No photo sent yet → ask them to send it in this chat first') and routes the write through confirm_action, naming the exact status and tokens involved. What it lacks is guidance on ERPs vs website photo tools, so the agent must infer which target to pick when both exist.

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