Skip to main content
Glama
musaceylan

PriceAtlas MCP Server

by musaceylan

get_prices

Retrieve product price observations and statistics by barcode, with optional country filtering. Provides individual price data and aggregated metrics like minimum, average, and count per country.

Instructions

Get price observations and stats for a product. Optionally filter by country. Returns individual observations and min/avg/count stats per country.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barcodeYesProduct barcode (8-14 digits)
countryNo2-letter country code (e.g. "DE", "TR", "US")

Implementation Reference

  • Tool registration and handler implementation for "get_prices" in src/index.ts. It performs a GET request to the price atlas API.
    server.tool(
      'get_prices',
      'Get price observations and stats for a product. Optionally filter by country. Returns individual observations and min/avg/count stats per country.',
      {
        barcode: z.string().describe('Product barcode (8-14 digits)'),
        country: z.string().length(2).optional().describe('2-letter country code (e.g. "DE", "TR", "US")'),
      },
      async ({ barcode, country }) => {
        try {
          let path = `/api/prices?barcode=${barcode}`;
          if (country) path += `&country=${country}`;
          const prices = await api(path);
          return text(prices);
        } catch (e) {
          return errorResult(`Get prices failed: ${(e as Error).message}`);
        }
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/musaceylan/priceatlas-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server