Skip to main content
Glama

Project Tango

A local-first Model Context Protocol server that gives LLM agents structured access to e-commerce data — products, inventory, orders and sales analytics.

CI Node MCP Tests License: MIT

Overview

Works with Claude Desktop, Cursor, VS Code or any MCP-compatible client. It ships with a realistic mock dataset, so it runs in under a minute with zero configuration, and every tool is written against a DataProvider interface — swap the mock engine for live Shopify/Stripe APIs without touching a single tool definition.

  • Runs entirely on your machine over stdio — no server to deploy, no database to host.

  • $0 infrastructure cost.

  • State survives a restart — writes land in a local SQLite database, not in memory that evaporates when the MCP client relaunches the process.

  • Strict TypeScript, fully typed domain model, coverage-gated test suite.

Release history, including a divergent v2.0.0 lineage that was never merged into main (its trie search is ported here), lives in CHANGELOG.md.

Related MCP server: Saleor MCP Server

Tools

Tool

What it does

list_all_products

Browse the catalog filtered by category, price range or free-text search — results ranked so a product whose own name, SKU, category or tag matches ranks above one that merely mentions the term

get_low_stock_alerts

Scans inventory and flags low / critical stock levels, optionally for one category

analyze_sales_metrics

Gross revenue, AOV, top sellers, order-status breakdown and a daily trend with a recent-vs-previous comparison, optionally scoped to one category

smart_restock_predictor

Ranks low-stock items by days of cover and recommends an exact reorder quantity

draft_product_copy

Generates marketing copy and SEO tags for a SKU

find_orders

Looks up an order by id or a customer by name, with lines enriched by product name and price; uncapped by default, bounded with limit

simulate_order_placement

Places a simulated order, validates stock, decrements inventory

reset_demo_state

Discards simulated orders and restores the seed catalog

Beyond tools, the server exposes a weekly_inventory_review prompt that sequences the review (alerts → restock plan → trend) with its reporting format, and a tango://catalog resource that serves the catalog as JSON for clients that read resources rather than call tools. The prompt's optional category is honoured by every step it sequences, so a scoped run returns genuinely scoped numbers.

Every tool declares an outputSchema and returns typed structuredContent, so clients validate responses instead of re-parsing JSON, and the shape is visible in tools/list before a call. A compact JSON rendering accompanies it for clients that read the text block. src/schemas.ts is the single source of truth — the analytics modules derive their return types from it, so a response cannot drift from the implementation without a compile error.

Read tools answer "nothing matched" the same way everywhere: a successful response with count: 0 and an empty list. Only a malformed call (no usable filter, an unknown SKU) is a tool error, and responses echo the filters actually applied, so a blank argument reads back as null instead of as a filter that matched everything.

find_orders is deliberately uncapped by default. customer_name is a substring match, soa one-letter query matches most of the dataset — on the bundled seed data "a" matches 130 of the 142 orders, about 46 KB of JSON. Nothing is dropped, because truncating would remove orders from a response that reports count and claims to enumerate its matches; callers narrow the filter or pass order_id, or ask for a bound with limit — and totalMatches always reports the full match count, so a capped answer admits exactly how much it withheld.

Prerequisites

  • Node.js 22.5 or later (node -v) — the floor is node:sqlite, the built-in database. On an older runtime the server refuses to start and says why (see Runtime floor).

  • npm (ships with Node)

Getting started

git clone https://github.com/CoderGamerUnknow/Project-Tango.git
cd Project-Tango
npm install
npm start          # tsx src/index.ts — no build step for local development

The server speaks stdio, so running it in a terminal just sits there waiting for a JSON-RPC client. That is expected: it is designed to be launched by an MCP client.

npm run build      # emits dist/index.js
npm run inspect    # optional: MCP Inspector to poke at tools by hand

Scripts

Script

What it does

npm start

Run the server from source with tsx

npm run dev

Same, in watch mode

npm run build

Clean dist/ and compile with tsc

npm run typecheck

tsc --noEmit for both the build and test configs

npm run lint

Type-aware ESLint

npm test

Typecheck, then the suite (pretest runs the typecheck)

npm run test:coverage

The suite under coverage, with hard minimums

npm run verify

typecheck + lint + coverage + build

npm run release:check <version>

Mechanical release validation

Connecting to an MCP client

Both configs assume npm run build has run and point at the absolute path of your clone.

Claude Desktop — edit claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "project-tango": {
      "command": "node",
      "args": ["/absolute/path/to/project-tango/dist/index.js"]
    }
  }
}

Restart Claude Desktop; the tools appear in the tool picker in your next conversation. To skip the build, point it at npx tsx /absolute/path/to/project-tango/src/index.ts instead.

Cursor — Settings → MCP → Add new MCP Server, or edit .cursor/mcp.json (or ~/.cursor/mcp.json globally) with the same block. Cursor shows a green dot once connected.

State and persistence

simulate_order_placement is a write tool, so its effects have to outlive the process. State is written to state.db — a SQLite database — after every mutation and restored on startup.

Variable

Effect

PROJECT_TANGO_DATA_DIR

Directory holding the state database. Defaults to ~/.project-tango. A fixed absolute path is used because an MCP client launches the server from an arbitrary working directory

PROJECT_TANGO_PERSIST=0

Disable persistence entirely — the original in-memory behaviour, for throwaway or CI runs

PROJECT_TANGO_STORE=json

Use the older whole-snapshot JSON file instead of SQLite. Works on a runtime without node:sqlite, with a narrower guarantee

Delete state.db to reset to the seed dataset. Saved state is reconciled against the seed rather than replacing it: products in the state file win (they carry real stock history), while seed products missing from it are re-added, so editing the catalog still takes effect. An existing state.json from an earlier version is imported automatically on first run, validated record by record, and kept as state.json.migrated.

The store is deliberately forgiving, because this process is a background child of someone else's app: saves are atomic (one transaction for the whole snapshot), an unreadable, corrupt, wrong-shape or wrong-version store degrades to the seed dataset with a warning on stderr, and a read-only data directory disables persistence with a warning instead of crashing.

Concurrency. Order placement wraps its read-validate-write in a SQLite BEGIN IMMEDIATE transaction, taking the write lock before the first read, so two server processes sharing one data directory serialise — one cannot pass a stock check against a snapshot the other has already moved past. The suite drives two real processes against one directory to pin it.

Reading. Before each read the server compares a cheap change token (PRAGMA data_version, which moves for other connections' commits and not for its own) and reloads only when another process actually committed. A read never happens mid-transaction, so a reload can never discard an uncommitted write. The token is a required part of the StateStore contract: a backend that cannot detect another writer must say so with stableToken(reason), so "this one goes stale" is a decision someone wrote down.

Upgrading from 3.1.0. That release shipped two data-loss defects; if you hit either, stored state may hold fewer products than the seed. 3.1.1 repairs this on its own — starting it re-adds the missing seed products and the next write saves the repaired catalog. Nothing you placed is lost: orders recorded against the missing products resolve again once they are back.

Runtime floor

Most failures to persist are environmental — an unwritable directory, a full disk, a lock — and degrade to a warning on stderr, because a warning is recoverable where a dead server is not. A runtime with no node:sqlite is different: it will still be true tomorrow, and a server that starts anyway accepts orders and discards every one at exit, on a stderr line the MCP client throws away. So the server checks before it connects and refuses to start, naming the fix. Either upgrade Node, set PROJECT_TANGO_STORE=json to accept a narrower durability guarantee, or set PROJECT_TANGO_PERSIST=0 to say you meant to run without persistence. engines.node is >=22.5.0, but npm only warns on a mismatch — this check is what actually holds the line.

Going live: swapping mock data for Shopify/Stripe

Every tool is written against the DataProvider interface in src/types.ts; none touches the mock arrays directly.

  1. Implement the interface, e.g. src/shopifyDataProvider.ts:

export class ShopifyDataProvider implements DataProvider {
  async getProducts() { /* Shopify Admin API */ }
  async getOrders() { /* ... */ }
  async getProductBySku(sku: string) { /* ... */ }
  async updateProductInventory(id: string, newCount: number) { /* ... */ }
  async addOrder(order: Order) { /* ... */ }

  // Order placement reads stock, awaits, then writes. Without a transaction an
  // interleaved caller validates against a snapshot you have already moved past.
  async transact<T>(fn: (p: DataProvider) => Promise<T>) { /* real transaction */ }

  // Optional. Omit it and `reset_demo_state` reports that the provider does not
  // support it — do NOT stub it with a destructive no-op.
  async reset() { /* omit or throw */ }
}
  1. Change one line in src/index.ts: const dataProvider: DataProvider = new ShopifyDataProvider(/* credentials */); The whole surface is also constructible in-process via createServer(provider).

  2. npm run build — no tool logic changes required.

Testing

npm test              # typecheck, then the suite
npm run lint          # type-aware ESLint over source and suites
npm run test:coverage # suite under coverage, with minimum thresholds
npm run verify        # typecheck + lint + coverage + build

287 tests, no test framework to install — Node's built-in runner drives tsx. The suites are typechecked before they run (tsconfig.test.json makes that possible, since the build config must exclude *.test.ts). Coverage is a gate, not a report: the run fails below 98% line / 94% branch / 96% function. The lint gate is type-aware, with one documented exception for test payloads where any is the honest type of parsed JSON.

Five layers:

  • Unit — catalog, order analytics, restock, copy, storage, state store, mock data and review prompt: velocity math, lookback-window resolution, threshold boundaries, order-line aggregation, revenue attribution, category scoping, copy generation, persistence atomicity/recovery, transaction rollback and read isolation.

  • End-to-end (tools.test.ts) — one long-lived server over stdio with the MCP SDK's own client: tool registration, declared output schemas, structured responses, the prompt and resource surface, scoped calls, and write-path guarantees (no partial writes, unique order ids, inventory never negative, transact() honoured under concurrency).

  • Lifecycle (persistence.test.ts) — restarts real server processes to prove state survives, seed rows reconcile, corrupt files recover, reset_demo_state works, and ten concurrent orders against 42 units accept exactly eight.

  • In-process seam (server.test.ts) — builds the whole MCP surface with createServer(provider) against a stub provider over the SDK's in-memory transport.

  • Bootstrap (bootstrap.test.ts) — launches src/index.ts as the real child process a user launches, covering the runtime floor end to end.

  • Docs (docs.test.ts) — reads the README and changelog as text and pins their claims (dataset figures, structure tree, tool names, release headings and dates) to the code, the data and the git tags, so documentation cannot rot quietly.

Every server the tests launch is pinned to a temp data directory, so the suite never touches your real ~/.project-tango catalog. Several tests are explicit regressions for bugs the server previously shipped: duplicate order lines driving inventory negative, colliding order ids, a seed that silently broke lookback anchoring, concurrent orders overselling from -7, saved state deleting seed products, reads handing out live references, a throwing transaction committing half-applied state, and non-finite numbers failing output validation.

Security

  • Local-first — a child process on your machine speaking stdio. No network listener, no exposed port, no cloud component in the default configuration.

  • Zero external data exposure — with the mock provider no data leaves your machine and the tool logic makes no outbound calls.

  • Explicit, validated inputs — every parameter is checked with Zod before any logic runs.

  • No silent partial writes — stock is validated for every line before any inventory mutates; the whole read-validate-write runs inside transact(), and a throw restores the pre-transaction state and skips the save.

  • Every write is reversible — reset_demo_state discards simulated orders and restores the seed, so an exploring agent cannot permanently distort the numbers.

  • Bring your own credentials — live providers should read them from the environment. This template ships with no secrets and no network calls.

Project structure

project-tango/
├── src/
│   ├── types.ts          Domain types + DataProvider interface
│   ├── schemas.ts        Zod response schemas — source of truth for shapes
│   ├── conventions.ts    Rules shared by several analytics modules
│   ├── catalog.ts        Filtering, low-stock alerts, search ranking
│   ├── productIndex.ts   Prefix index that ranks search results (from v2.0.0)
│   ├── sqliteStore.ts    Durable store with cross-process write transactions
│   ├── orderAnalytics.ts Windowing, metrics, trend, order drill-down, buildOrder
│   ├── restock.ts        Restocking policy + demand-velocity planning
│   ├── productCopy.ts    Marketing copy and its per-tag voice tables
│   ├── toolNames.ts      The eight tool names, declared once
│   ├── responses.ts      jsonResult / errorResult wire envelopes
│   ├── reviewPrompt.ts   The weekly review prompt as a pure function
│   ├── server.ts         MCP surface: createServer(provider) — 8 tools, 1 prompt, 1 resource
│   ├── mockData.ts       MockDataProvider (read this to implement DataProvider)
│   ├── seedCatalog.ts    The 13-product starter catalog
│   ├── orderGenerator.ts Deterministic seeded order history
│   ├── storage.ts        Store selection, atomic JSON store, recovery
│   ├── index.ts          Bootstrap: picks the provider, connects stdio
│   ├── testHelpers.ts    Shared fixtures + stdio launcher for the suites
│   ├── testGlobalSetup.ts Pins every test process to a throwaway data directory
│   └── *.test.ts         Unit, e2e, lifecycle, seam, bootstrap and docs suites
├── scripts/release-check.mjs
├── .github/workflows/     CI + release artifact
├── CHANGELOG.md
├── tsconfig.json / tsconfig.test.json
└── eslint.config.mjs

The split between analytics and MCP wiring is deliberate: every tool's logic is a pure function over plain data, so it is unit-testable without spawning a server, and handlers stay readable as validate → fetch → compute → wrap. server.ts owns registration only and takes the provider as an argument; index.ts is the thin bootstrap. The analytics layer is split by concern — catalog, orders, restock, copy — with conventions.ts holding only the rules more than one of them follows.

Releasing

Order matters, because two steps are checked against each other and getting them backwards fails after the release is public.

  1. Prepare. Bump package.json, package-lock.json (npm install --package-lock-only) and SERVER_VERSION in src/server.ts. Write the ## [X.Y.Z] — YYYY-MM-DD changelog section and its link definition. docs.test.ts refuses a release whose heading has no tag or whose tag date is not the heading's date.

  2. Verify locally — npm run verify.

  3. Commit, then tag the commit (git tag -a vX.Y.Z -m "Project Tango vX.Y.Z").

  4. Push the tag before the branch — a tag run checks out a detached HEAD and reads main's tag history, so an unlanded branch fails docs.test.ts on malformed object name main.

  5. Wait for the tag run to go green before publishing. CI runs scripts/release-check.mjs on tag pushes.

  6. Publish with notes generated from the changelog section, and let release-artifact.yml attach the tarball — it is built, installed and booted on the runner before upload.

  7. Confirm the tarball is attached. CI also runs on Windows; both legs must be green.

License

MIT © 2026 CoderGamerUnknow

Available Tools

8 tools
analyze_sales_metricsAnalyze Sales MetricsA

Calculates gross revenue, average order value (AOV), the top-selling products by units sold, and a breakdown of orders by fulfillment status (pending / shipped / delivered), based on current order history. Figures cover all recorded orders; the 'period' field reports the actual date span so a stale dataset is visible. An optional category scopes every figure to products in that category: revenue, units and the trend count only lines of those products, an order counts toward the breakdown and AOV when it contains at least one such line, and the echoed 'filters' block reports the category actually applied.

NameRequiredDescriptionDefault
categoryNoRestrict to a single category, e.g. 'tech', 'apparel', or 'home'. Case-insensitive. Omit to cover the whole catalog.

Output Schema

NameRequiredDescription
trendYes
periodYes
filtersYes
orderCountYes
grossRevenueYes
averageOrderValueYes
topSellingProductsYes
orderFulfillmentBreakdownYes

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that figures span all recorded orders, that the 'period' field exposes a stale dataset, and that an echoed 'filters' block reports the category actually applied. It omits any authorization, cost, or performance caveats, but the data-scope semantics are unusually well spelled out.

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 but front-loads the computed metrics before the scoping caveats, and the second paragraph is reserved for the optional category semantics. Every sentence carries information, though the scoping clause is long enough to require re-reading.

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?

An output schema exists, so return values needn't be explained, and the description covers the behavioral scope thoroughly for a single-optional-param read tool. Only the missing when-to-use guidance against sibling tools keeps it from being fully complete.

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?

Schema coverage is 100% and the single category param is already documented there, so the baseline would be 3. The description goes beyond the schema by defining exactly how the category scopes each metric (orders count toward AOV/breakdown only when they contain a matching line), which is genuine added meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb (calculates) plus the exact outputs: gross revenue, AOV, top-selling products by units, and an orders-by-fulfillment-status breakdown. This is clearly distinguishable from siblings that deal with products, orders, or stock levels rather than aggregate analytics.

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

Usage Guidelines3/5

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

The description implies an analytics/reporting use case and notes figures cover all recorded orders, but it never says when to reach for this over find_orders or the restock tools. Usage is inferable from the content but not stated as guidance.

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

draft_product_copyDraft Product CopyA

Looks up a product by SKU and generates structured, high-conversion marketing copy (headline, short and long description, key bullet points) plus SEO tags tailored to that product's category and tags.

NameRequiredDescriptionDefault
skuYesThe exact product SKU to generate marketing copy for, e.g. 'TCH-AB-001'.

Output Schema

NameRequiredDescription
skuYes
copyYes
seoTagsYes
productIdYes

TDQS

A3.6/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 burden. It usefully discloses the shape of the generated output and that the copy is tailored to the product's category and tags, and the verbs 'looks up' and 'draft' imply a non-destructive read/generate flow. However, it never states whether the draft is persisted, what happens if the SKU is unknown, or that generation may be slow/costly — real gaps for a mutation-adjacent tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-formed sentence with the lookup-and-generate action front-loaded and the output list appended as a compact parenthetical. Every clause earns its place with no filler or repetition.

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 one-parameter tool with full schema coverage and an output schema (so return values need no explanation), the description covers the essential action and output content adequately. It is only slightly incomplete on usage routing and persistence/error behavior, which keeps it at 4 rather than 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single parameter and schema description coverage is 100%, with the schema already documenting the SKU format and an example value. The description only restates that the SKU identifies the product to generate copy for, adding no format or constraint detail beyond the schema. Baseline 3 applies.

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 states a concrete verb and resource: it looks up a product by SKU and generates marketing copy, then enumerates the artifacts produced (headline, short/long description, bullets, SEO tags). That is far more specific than the name alone and clearly sits apart from the inventory/order siblings. It stops short of explicitly naming an alternative tool, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer you call this when you need marketing copy for a SKU. There is no statement of when to prefer it over siblings (e.g., versus list_all_products for raw product data) and no prerequisites such as the SKU needing to exist. That is the definition of a minimum-viable 3.

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

find_ordersFind OrdersA

Looks up orders by exact order id or by customer name (case-insensitive substring match, so 'maya' finds 'Maya Chen') and returns each order's line items enriched with product name, unit price and line total. This is the drill-down behind the aggregates: analyze_sales_metrics reports what sold in total, this reports what a single order or customer actually bought. Results are newest first. Line prices come from the current catalog; a line whose product is no longer catalogued reports null rather than an invented price. Supplying both filters requires an order to satisfy both; the echoed 'filters' block reports the values actually matched on. A filter that matches nothing is a successful lookup with count 0 and an empty 'orders' array — the same answer list_all_products gives — not a tool error. Results are deliberately uncapped by default and there is no pagination: 'customer_name' is a substring match, so a broad query returns every matching order in the dataset (a one-letter name matches most of it). Pass 'limit' to bound a broad query — 'totalMatches' always reports how many matched in full, so a capped answer cannot be mistaken for a complete one. Narrow the filter rather than expecting a page, and prefer 'order_id' when you want a single order.

NameRequiredDescriptionDefault
limitNoReturn at most this many matches, newest first. 'totalMatches' still reports the full match count. Omit to return every match.
order_idNoExact order id to fetch, e.g. 'ord_1042'. Case-insensitive.
customer_nameNoCustomer name to match, case-insensitively as a substring: 'maya' matches 'Maya Chen'. Use this to answer questions like 'what did Maya order?'.

Output Schema

NameRequiredDescription
countYes
limitYes
ordersYes
filtersYes
totalMatchesYes

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: newest-first ordering, uncapped-by-default with no pagination, null prices for de-catalogued products rather than invented ones, a broad substring filter matching most of the dataset, the echoed 'filters' block, and that a zero-match result is a success not a tool error. These are exactly the failure modes an agent would otherwise stumble into.

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 core purpose and the aggregate-vs-drill-down framing are front-loaded, and each subsequent sentence adds a distinct behavioral fact. The passage is long and dense, and a couple of points (the list_all_products aside, the one-letter-name aside) could be trimmed, but there is little filler.

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

Completeness5/5

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

An output schema exists so return values need not be spelled out, yet the description still clarifies the highest-risk aspects of the response (ordering, cap vs totalMatches, null prices, empty-array success). Combined with the behavioral coverage, an agent has everything needed to call it correctly and interpret the result.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the substring/case-insensitive behavior with a concrete example, the AND semantics when both filters are supplied, and the interplay of 'limit' with the always-full 'totalMatches' count. This goes beyond restating the field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('looks up orders') plus two distinct lookup modes (exact order_id or substring customer_name) and the enrichment applied to returns (product name, unit price, line total). It explicitly distinguishes itself from the sibling analyze_sales_metrics as 'the drill-down behind the aggregates', so an agent can route without opening another schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing ('prefer order_id when you want a single order', narrow the filter rather than expecting a page), names the alternative (analyze_sales_metrics) and the condition that selects it. It also clarifies the empty-result and combined-filter cases, leaving nothing to inference.

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

get_low_stock_alertsGet Low Stock AlertsA

Scans inventory and returns InventoryAlert objects for every product at or below a stock threshold. Products under 3 units are flagged 'critical'; everything else at or under the threshold is flagged 'low'. Results are sorted by current stock ascending (most urgent first). An optional category restricts the scan to one category; the echoed 'filters' block reports the category actually applied.

NameRequiredDescriptionDefault
categoryNoRestrict to a single category, e.g. 'tech', 'apparel', or 'home'. Case-insensitive. Omit to cover the whole catalog.
thresholdNoStock level at or below which a product triggers an alert. Defaults to 5 if omitted.

Output Schema

NameRequiredDescription
alertsYes
filtersYes
alertCountYes
criticalCountYes
thresholdUsedYes

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden and does well: it discloses the severity classification rule (under 3 units = critical, otherwise low), the sort order (stock ascending, most urgent first), and the echoed filters block. It does not mention permissions, rate limits, or pagination, which are the remaining gaps for an unannotated read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, each earning its place: trigger condition first, classification and ordering second, filtering/echo behavior last. No filler and no restatement of the title.

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?

With an output schema present, return values need not be explained, and the description covers the alert logic, sorting, and filtering fully. Only minor operational context (permissions, whether scanning is expensive) is absent, which is a small gap for a read-only tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters (category with case-insensitivity and examples, threshold with default and exclusivity) are already fully documented in the schema. The description reinforces their effect — category restricts the scan, the applied category is echoed — but adds no new syntax or format detail, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (scans inventory, returns InventoryAlert objects) plus the precise triggering condition (at or below a stock threshold). It is clearly distinct from siblings like list_all_products and smart_restock_predictor, so an agent can route to it without opening the schema.

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

Usage Guidelines3/5

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

The description implies when the tool applies (finding products at or below a threshold) and notes that omitting category covers the whole catalog, but it never names an alternative such as smart_restock_predictor or states when not to use this tool. Usage is inferable rather than explicit.

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

list_all_productsList All ProductsA

Returns the product catalog, optionally filtered by category, a min/max price range, or a free-text search. Use this to browse inventory or to find a specific product by name, SKU, description or tag before recommending, restocking, or drafting copy for products.

NameRequiredDescriptionDefault
searchNoFree-text search matched against product name, SKU, description, tags and category. Case-insensitive substring, so 'merino' finds the Highland Merino Wool Sweater. Results are ranked by match quality, so a product whose own name or tag is the query comes first; the set of matches is the same either way. Combine with the other filters to narrow further.
categoryNoRestrict results to a single category, e.g. 'tech', 'apparel', or 'home'. Case-insensitive. Omit to include all categories.
max_priceNoOnly include products priced at or below this amount, in USD.
min_priceNoOnly include products priced at or above this amount, in USD.

Output Schema

NameRequiredDescription
countYes
filtersYes
productsYes

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It conveys that filters are optional and that the unfiltered default returns the whole catalog, which is useful, but says nothing about result size, pagination, ordering guarantees beyond what the schema already states, or permissions. Adequate but thin for a no-annotation tool.

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 sentences, front-loaded with the return behavior and then the use cases; no filler or repetition. The second sentence is somewhat long with a four-item enumeration, but each item (recommending, restocking, drafting copy) maps to real sibling workflows and earns its place.

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?

With a 100%-covered schema and an output schema present, the description need not restate parameters or return shape, and it correctly delegates those. What remains missing is only the low-risk behavioral profile (read-only, no side effects, result volume) for a tool with no annotations, which is a minor gap given the obvious read semantics of 'Returns'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the search parameter's ranking/substring semantics are fully documented in the schema, so the baseline is 3. The description only summarizes the filter categories ('category, a min/max price range, or a free-text search') without adding syntax, defaults, or combination behavior beyond what the schema already provides.

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?

States a specific verb+resource ('Returns the product catalog') and enumerates the available filters, so the agent knows exactly what this tool produces. It does not name or contrast with any sibling (e.g. find_orders, get_low_stock_alerts), so differentiation is inferred from the resource noun rather than stated.

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?

Gives clear usage context: browse inventory or locate a product by name/SKU/description/tag, and lists downstream scenarios (recommending, restocking, drafting copy) that motivate the call. No explicit when-not-to-use or alternative-tool routing is provided, so it stops short of a 5.

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

reset_demo_stateReset Demo StateA

Write-action tool: discards every simulated order and inventory change made during this or any earlier session, restoring the original seed catalog. Use it to undo exploratory ordering before reporting results, so the numbers you hand back reflect the real dataset rather than your own test orders.

NameRequiredDescriptionDefault

No parameters

Output Schema

NameRequiredDescription
resetYes
ordersYes
productsYes

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it explicitly labels this a write-action tool and discloses the exceptionally wide destructive scope (all simulated changes from this or any earlier session). It stops short of stating irreversibility/confirmation requirements, but the safety profile is otherwise well covered.

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?

Front-loads the 'Write-action tool' warning, then the effect, then the rationale. The final clause about reporting real numbers is slightly redundant with 'before reporting results,' but it reinforces intent rather than padding.

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

Completeness5/5

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

Output schema exists so return values need no explanation, and there are no parameters or annotations to compensate for. Scope, intent, and destructive warning are all present for a zero-arg tool.

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?

The tool takes zero parameters, so per the baseline there is no parameter semantics to explain and no gap in the description. No misleading parameter claims are made.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific action (discards/restores) on a specific resource (simulated orders and inventory changes, seed catalog). An agent can immediately distinguish this reset tool from simulate_order_placement or find_orders in the sibling set.

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?

Gives a clear when-to-use context: undo exploratory ordering before reporting results. It does not name an explicit alternative tool or a when-not-to-use condition, but the trigger condition is unambiguous.

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

simulate_order_placementSimulate Order PlacementA

Write-action tool: places a new simulated order, validating stock availability for every line item, decrementing inventory counts, computing the order total from current catalog prices, and returning a success receipt with the updated stock levels. Rejects the entire order (no partial writes) if any item is unavailable or under-stocked. The whole read-validate-write runs inside the provider's transaction, so a concurrent order cannot both pass a stock check and oversell. This permanently changes the dataset until reset_demo_state is called.

NameRequiredDescriptionDefault
itemsYesOne or more line items for this order.
customer_nameYesFull name of the customer placing the order.

Output Schema

NameRequiredDescription
receiptYes
successYes
updatedStockLevelsYes

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: all-or-nothing writes ('no partial writes'), transactional isolation against concurrent oversell, and permanent dataset mutation until reset_demo_state is called. These are exactly the mutation semantics an agent must know before invoking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with the write-action framing, with zero filler. Each sentence adds a distinct fact: what it does, atomicity, and transaction/persistence behavior.

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

Completeness5/5

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

An output schema exists, so the description needn't detail return values, yet it still previews the 'success receipt with updated stock levels'. Combined with the atomicity and persistence notes, an agent has everything needed to call this safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so customer_name, items, product_id, and quantity are already documented in the schema. The description adds behavioral meaning (per-line-item stock validation, totals from current catalog prices) but no syntax or constraint detail beyond the schema, matching the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with an explicit verb+resource ('places a new simulated order') and enumerates the concrete operations performed (stock validation, inventory decrement, total computation). It also distinguishes itself from siblings by naming reset_demo_state as the inverse operation.

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?

Frames the tool as a 'Write-action tool' and states the persistence consequence plus the reset_demo_state escape hatch, which tells an agent when this is appropriate versus read-only siblings. It stops short of explicitly contrasting against alternatives like find_orders or list_all_products, so a 4 rather than 5.

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

smart_restock_predictorSmart Restock PredictorA

Evaluates every low-stock item and recommends an exact reorder quantity. The recommendation is derived from each product's demand velocity (units sold per day over recent order history), projected demand across an assumed 14-day supplier lead time plus a 7-day safety buffer, minus current stock on hand. Items with no recent sales history fall back to a conservative flat restock quantity. Results are ordered by days of cover (stock remaining / daily velocity), so the first recommendation is the item that runs out first; items with no measurable demand report a null daysOfCover and sort last. An optional category restricts the plan to one category; the echoed 'filters' block reports the category actually applied.

NameRequiredDescriptionDefault
categoryNoRestrict to a single category, e.g. 'tech', 'apparel', or 'home'. Case-insensitive. Omit to cover the whole catalog.
thresholdNoStock level at or below which a product is considered for restocking. Defaults to 5 if omitted.

Output Schema

NameRequiredDescription
windowYes
filtersYes
assumptionsYes
thresholdUsedYes
recommendationsYes

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it discloses the demand-velocity formula, the hardcoded 14-day lead time and 7-day safety buffer assumptions, the flat-quantity fallback for items with no history, and the days-of-cover sort with nulls last. It never explicitly states this is a non-mutating computation, which is the only real gap.

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 core purpose is front-loaded in the first sentence and the remaining detail is dense rather than padded. Slightly long, but each sentence (formula, assumptions, fallback, sort order, filter echo) carries information the agent needs to trust the output.

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

Completeness5/5

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

An output schema exists, so return values need not be explained, and the description still covers ordering semantics, null daysOfCover behavior, and filter echoing. For a two-parameter computed-read tool this is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both category and threshold (including the default of 5). The description adds the useful detail that the applied category is echoed back in a 'filters' block, but contributes nothing for threshold — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Evaluates every low-stock item and recommends an exact reorder quantity'), which distinguishes it from the alert-listing sibling get_low_stock_alerts — this tool quantifies, that one notifies. An agent can tell what it produces without opening the schema.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: you use it when you need reorder quantities for low-stock items, and the optional category narrows the plan. There is no explicit when-not guidance or reference to the sibling alert/product tools, so the agent must infer routing.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev3.2.0
    • Changedlist_all_products1 field changed
      • changedInput schema / properties / search / description
        Previous value: -"Free-text search matched against product name, SKU, description, tags and category. Case-insensitive substring, so 'merino' finds the Highland Merino Wool Sweater. Combine with the other filters to narrow further."New value: +"Free-text search matched against product name, SKU, description, tags and category. Case-insensitive substring, so 'merino' finds the Highland Merino Wool Sweater. Results are ranked by match quality, so a product whose own name or tag is the query comes first; the set of matches is the same either way. Combine with the other filters to narrow further."
  2. 8 tool updatesv3.0.1
    • First observedanalyze_sales_metrics
    • First observeddraft_product_copy
    • First observedfind_orders
    • First observedget_low_stock_alerts
    • First observedlist_all_products
    • First observedreset_demo_state
    • First observedsimulate_order_placement
    • First observedsmart_restock_predictor

TDQS

A4.1/5.0

Scored across 8 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: aggregate analytics (analyze_sales_metrics) vs. per-order drill-down (find_orders), inventory alerting (get_low_stock_alerts) vs. restock recommendation (smart_restock_predictor), plus catalog browse, copy generation, order simulation, and demo reset. The descriptions explicitly cross-reference each other to delineate boundaries, leaving little room for misselection.

Naming Consistency4/5

Most names follow a verb_noun pattern (analyze_sales_metrics, list_all_products, find_orders, reset_demo_state, simulate_order_placement, draft_product_copy). Two deviate mildly: 'get_low_stock_alerts' inserts an adjective and 'smart_restock_predictor' uses an adjective_noun form with no verb. Still readable and largely predictable.

Tool Count5/5

Eight tools is well within the sweet spot and each earns its place across the read/write lifecycle. No redundant or filler tools; the set is tightly scoped to a simulated commerce domain.

Completeness4/5

The surface covers catalog browse, order placement/lookup, analytics, inventory alerts, restock planning, copy generation, and state reset—core workflows are all present. Minor gaps exist around product CRUD (no create/update/delete of catalog items) and order mutation, though the demo/simulated framing makes these reasonable omissions.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides real-time access to MongoDB product data, enabling sophisticated e-commerce queries with price range filters, category searching, and product recommendations through a conversational interface.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI assistants to interact with Saleor e-commerce data including products, orders, customers, and more.
    3
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    A Model Context Protocol server that connects AI agents to the Shopify Admin GraphQL API, enabling management of products, orders, customers, and more through natural language.
    25 npm
    6
    MIT