Skip to main content
Glama

Rami Levy MCP Server

by shilomagen
search.ts883 B
import { z } from "zod"; import { ramiLevyRequest } from "../common/utils.js"; import { SearchResponseSchema } from "../common/types.js"; const CATALOG_API_URL = "https://www.rami-levy.co.il/api/catalog"; // Schema definitions export const SearchItemsSchema = z.object({ q: z.string().describe("Search query"), store: z .string() .default("331") .describe("Store identifier (default: '331')"), aggs: z.number().default(1).describe("Aggregation flag"), }); // Function implementations export async function searchItems(params: z.infer<typeof SearchItemsSchema>) { const response = await ramiLevyRequest(CATALOG_API_URL, { method: "POST", body: { q: params.q, store: params.store, aggs: params.aggs, }, }); // Parse and transform the response to include only the fields we want return SearchResponseSchema.parse(response); }

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/shilomagen/rami-levy-mcp'

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