Skip to main content
Glama

Add a product

add_product

Add a product or service (name, price, description…). Changes the owner's account.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
unitNo
priceNo
brand_idNoOptional business id from list_brands (default: this connection's business).
categoryNo
currencyNo
image_urlNo
is_activeNo
price_kindNo
descriptionNo
price_minorNo
idempotency_keyNo
price_max_minorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare this is a non-readonly, non-destructive, non-idempotent mutation, so the bar is lower. The phrase 'Changes the owner's account' usefully signals account-level side effects, but the description says nothing about duplicate handling, required permissions, error behavior, or how the idempotency_key parameter interacts with the declared idempotentHint=false.

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?

Two short sentences with the core action front-loaded and no filler. The trailing ellipsis in the field list is sloppy for a 13-parameter tool and weakens an otherwise efficient structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation with 13 parameters, 8% schema coverage, and no output schema, this description is far too thin. An agent gets no guidance on which currency/price representation to send, what idempotency_key does, or whether brand_id defaults correctly, all of which are needed to call the tool correctly.

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 only 8% across 13 parameters, so the description must carry the explanatory load and does not. It mentions name, price, and description but is silent on brand_id, currency, unit, category, image_url, is_active, price_kind, idempotency_key, and the price_minor/price_max_minor fields whose relationship to 'price' is genuinely ambiguous.

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 description names a specific verb and resource ('Add a product or service') and gestures at the payload contents (name, price, description). It is clearly distinguishable from siblings like delete_product or update_product, though it does not explicitly separate itself from add_offer, which plausibly covers overlapping ground.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance: nothing says when to add a product versus an offer, or when to update an existing product instead of creating a new one. The parenthetical list of fields is the only hint about appropriate inputs, and it leaves the create-vs-update decision entirely to inference.

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