# ToolForge – Product Feed Detective (`toolforgeau/my-actor`) Actor

Compare two CSV product catalogues to detect price changes, stock discrepancies, currency mismatches, missing products and duplicate IDs. Fast, read-only data comparison for e-commerce businesses, developers and AI agents via MCP.

- **URL**: https://apify.com/toolforgeau/my-actor.md
- **Developed by:** [Daryl Sutton](https://apify.com/toolforgeau) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 product feed comparisons

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ToolForge – Product Feed Detective

Find product catalogue discrepancies before they become expensive problems.

ToolForge Product Feed Detective is a read-only MCP tool that compares two CSV product catalogues and returns a structured report of their differences.

### What it detects

- Price changes
- Stock and availability discrepancies
- Currency mismatches
- Missing products
- Newly added products
- Duplicate product IDs

### Who is it for?

- E-commerce businesses
- Product feed managers
- Marketplace sellers
- E-commerce agencies
- Developers and AI agents
- Inventory management teams

### How it works

1. Provide a reference product catalogue.
2. Provide a second catalogue to compare against it.
3. ToolForge matches products by their unique IDs.
4. Receive a structured discrepancy report.

Neither input catalogue is modified.

### Connecting to ToolForge

Connect using an MCP-compatible client supporting Streamable HTTP.

Use the MCP endpoint displayed in the Actor's Server tab.

Authentication requires your own Apify API token in the HTTP header:

```
Authorization: Bearer YOUR_APIFY_API_TOKEN
```

### Available tool

#### compare_feeds

Accepts two CSV strings:

- reference_csv
- observed_csv

Both catalogues require these columns:

```
id,price,currency,availability
```

Supported availability values:

- in_stock
- out_of_stock
- preorder
- backorder

#### Example reference catalogue

```
id,price,currency,availability
SKU001,29.99,AUD,in_stock
SKU002,49.99,AUD,in_stock
```

#### Example observed catalogue

```
id,price,currency,availability
SKU001,34.99,AUD,in_stock
SKU002,49.99,AUD,out_of_stock
```

ToolForge detects two discrepancies:

- SKU001: price mismatch
- SKU002: availability mismatch

### Results

The structured report includes:

- Product counts
- Total discrepancies
- Discrepancies grouped by type
- Individual affected product IDs
- Reference and observed values
- Execution metrics
- Report truncation indicators

### Pricing

Pay per event.

- $0.01 USD per successful comparison
- $10 USD per 1,000 successful comparisons
- $0.00005 USD per Actor startup

Invalid comparisons do not incur a comparison event fee.

Apify infrastructure and other applicable usage charges
may apply separately.

### Data handling

ToolForge compares the CSV data supplied by the client.

- Read-only comparison
- No external product scraping
- No modification of source catalogues
- No external currency conversion
- No deliberate storage of submitted catalogues by the comparison engine

Apify platform data handling and logging policies also apply.

### Limitations

- Product IDs must be consistent between catalogues.
- The reference catalogue is not independently verified.
- Duplicate IDs are reported and excluded from matching.
- Prices in different currencies are not directly compared.
- Engine limit: 50,000 rows per catalogue.
- HTTP request size limits may restrict catalogue sizes.
- Detailed results may be truncated for large reports.
- Requires an MCP-compatible client.

### Support

Please use the Issues section on the Actor's Apify Store page to report problems or request improvements.

***

ToolForge – Practical tools for everyday automation.

Version 1.0 – Initial release.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("toolforgeau/my-actor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("toolforgeau/my-actor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call toolforgeau/my-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toolforgeau/my-actor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EGZhifA4X7PMsoOEI/builds/NPFi7ygPO5cOOaPYa/openapi.json
