Skip to main content
Glama

NicheDB: Find a Product Across Stores

nichedb_find_product
Read-onlyIdempotent

[NicheDB] Find a product and every store selling it, from the product graph: offers that stores state in their own product page data (schema.org Product/Offer), read by the pit.world crawler and joined across stores by barcode or part number. Give gtin (any UPC, EAN, ISBN-13 or GTIN-14; hyphens fine) or brand + mpn for an exact product, or q for words (a name, brand, part number or SKU; a bare barcode in q works too). host keeps one store. Each product has key, name, brand, gtin, mpn, stores, lowPrice + currency (only when every buyable offer shares one currency) and offers sorted buyable-first then cheapest: seller, host, price, currency, availability (schema.org word: InStock, OutOfStock, PreOrder...), condition, variant, offerUrl, seenAt. Prices are what the page said when last read, not live; quote seenAt with them. No store pays to be listed.

Served by NicheDB (https://nichedb.dev/docs/mcp).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nichedb_find_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoWords to match (optional), e.g. sony wh-1000xm5
mpnNoThe maker's part number, with brand (optional), e.g. GSR12V-300B22
gtinNoA UPC, EAN, ISBN-13 or GTIN-14 (optional), e.g. 0027242923232
hostNoOnly this store (optional), e.g. example-shop.com
brandNoBrand, with mpn (optional), e.g. Bosch
limitNoProducts to return, integer 1-50, default 10, e.g. 5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: discloses data provenance (store-declared offers read by the pit.world crawler), that prices are last-read rather than live and must be quoted with `seenAt`, the sort order (buyable-first then cheapest), and that no store pays to be listed, which tells the agent the ranking is unsponsored. These are exactly the traits an agent needs to trust and present results.

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-loaded with purpose, then input modes, then result shape, so an agent can stop reading early. It is dense and heavily backticked, and the long field enumeration could be broken into a short list, but nearly every clause carries information given there is no output schema.

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?

With no output schema, the description correctly documents the returned fields (`key`, `stores`, `lowPrice`, `offers` with `seller`, `availability`, `condition`, `offerUrl`, `seenAt`) and the currency caveat. Combined with provenance and freshness notes, nothing an agent needs to call this correctly or describe results is missing.

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: `gtin` accepts UPC, EAN, ISBN-13 or GTIN-14 with hyphens, `q` accepts a bare barcode, and `brand` is only meaningful paired with `mpn`. The dependency between brand and mpn is clarified beyond what the per-parameter schema text states.

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 and resource — find a product and every store selling it — plus the mechanism (schema.org Product/Offer offers joined across stores by barcode or part number). That scope is distinctive enough that an agent can separate it from item-level lookups, though no sibling is named explicitly.

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 selection guidance among the three lookup modes: exact identity via `gtin`, or `brand` + `mpn`, or free words via `q`, and notes `host` narrows to one store. It stops short of stating when NOT to use this tool or naming an alternative for single-store or single-item lookups.

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