Skip to main content
Glama
preetash88

E-commerce MCP Server

by preetash88

Add Product Smartly

add_product_smartly

Create a product with SKU, name, price, and quantity; avoid duplicate SKUs and auto-generate descriptions when missing.

Instructions

Create a new product with sku, name, description(optional), price, and quantity. Since description is optional, is description is missing, use smart AI generated description if missing. This tool also checks for existing products with the same SKU to prevent duplicates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuYes
nameYes
priceYes
quantityYes
descriptionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
skuYes
nameYes
priceYes
quantityYes
created_atNo
updated_atNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two important behaviors: generating a smart description when none is supplied and checking for existing products with the same SKU. However, it stops short of explaining what happens on a duplicate (error, no-op, update?) or whether AI generation is automatic, so the disclosure is incomplete.

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 description is short, front-loaded with the primary action, and contains no filler. The second sentence has a typo and redundant phrasing ('is description is missing... if missing'), which slightly reduces polish but does not obscure the meaning.

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?

The definition is too thin for a mutation tool with a same-purpose sibling and no annotations: it neither explains how to choose between add_product and add_product_smartly nor states the behavior when a duplicate SKU is encountered. The agent is left without the edge-case knowledge needed to call it correctly and interpret the outcome.

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%, so the description is the only source of parameter meaning. Yet it merely lists the parameter names and notes that description is optional; it adds no detail on formats, units, constraints, or subtle semantics beyond what a reader would infer from the names. The schema itself also lacks property descriptions, so nothing compensates.

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 clearly states the action ('Create a new product') and enumerates the accepted fields, which is specific and unambiguous. It also hints at its distinguishing behaviors—AI-generated description and duplicate-SKU prevention—which set it apart from the sibling add_product, though it never names that sibling explicitly.

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 statement of when to use this tool versus add_product or any other sibling. The duplicate-check and AI-description behaviors imply use cases, but the description does not say 'use this when...' or describe an exclusion criterion, leaving the agent to guess which creation tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.