Skip to main content
Glama

get_catalog_item

Retrieve specific catalog item details from the Klaviyo MCP Server using catalog ID and item ID to manage and access product information efficiently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
catalog_idYesID of the catalog
item_idYesID of the catalog item

Implementation Reference

  • The asynchronous handler function that executes the tool logic: fetches the specified catalog item using klaviyoClient and returns JSON or error.
    async (params) => { try { const item = await klaviyoClient.get(`/catalogs/${params.catalog_id}/items/${params.item_id}/`); return { content: [{ type: "text", text: JSON.stringify(item, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error retrieving catalog item: ${error.message}` }], isError: true }; } },
  • Zod input schema validating catalog_id and item_id parameters.
    { catalog_id: z.string().describe("ID of the catalog"), item_id: z.string().describe("ID of the catalog item") },
  • Direct registration of the get_catalog_item tool using server.tool, including schema, handler, and description.
    server.tool( "get_catalog_item", { catalog_id: z.string().describe("ID of the catalog"), item_id: z.string().describe("ID of the catalog item") }, async (params) => { try { const item = await klaviyoClient.get(`/catalogs/${params.catalog_id}/items/${params.item_id}/`); return { content: [{ type: "text", text: JSON.stringify(item, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error retrieving catalog item: ${error.message}` }], isError: true }; } }, { description: "Get a specific item from a catalog in Klaviyo" } );
  • src/server.js:41-41 (registration)
    Top-level call to registerCatalogTools function, which registers the get_catalog_item tool (among others).
    registerCatalogTools(server);

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/ivan-rivera-projects/Klaviyo-MCP-Server-Enhanced'

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