Skip to main content

Overview

File: src/tools/ProductsTool.ts Six tools demonstrating complete product management with the Products API.

Tools Included

Search

Find products by query

Get All

List with pagination

Filter

Query by attributes

Create

Add new products

Update

Modify existing

Delete

Remove products

Example Tools

SearchProductsTool

CreateProductTool

UpdateProductTool

BrowseProductsTool (with Filters)

Use Cases

E-commerce Catalog

Filtering Products

Inventory Management

Admin Dashboard

Using save() Method (New!)

Practical Example: Bulk Price Update

What You’ll Learn

CRUD Operations

Create, Read, Update, Delete

Pagination

Handle large datasets

Search

Semantic search with vector embeddings

Filtering

MongoDB-style queries for structured data

Next Steps

Products API

Complete API reference

Baskets Example

Add products to carts