Skip to main content
Glama

get-product-details

Retrieve specifications and details for Lulu print products using product IDs to access accurate information for print-on-demand services.

Instructions

Get specifications and details for a Lulu product

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYesLulu product ID

Implementation Reference

  • src/server.ts:57-90 (registration)
    Registration of the 'get-product-details' MCP tool, including description, input schema, and handler function.
    server.tool( "get-product-details", "Get specifications and details for a Lulu product", { product_id: z.string().describe("Lulu product ID") }, async ({ product_id }) => { try { // TODO: Implement actual API call const mockProduct = { product_id, name: "Sample Product", type: "Paperback", dimensions: "6x9 inches", message: "This is mock data - actual API integration pending" }; return { content: [{ type: "text" as const, text: JSON.stringify(mockProduct, null, 2) }] }; } catch (error: any) { return { content: [{ type: "text" as const, text: `Error: ${error.message}` }], isError: true }; } } );
  • Handler function for 'get-product-details' tool that returns mock product details based on product_id, with error handling.
    async ({ product_id }) => { try { // TODO: Implement actual API call const mockProduct = { product_id, name: "Sample Product", type: "Paperback", dimensions: "6x9 inches", message: "This is mock data - actual API integration pending" }; return { content: [{ type: "text" as const, text: JSON.stringify(mockProduct, null, 2) }] }; } catch (error: any) { return { content: [{ type: "text" as const, text: `Error: ${error.message}` }], isError: true }; } }
  • Input schema for the 'get-product-details' tool, defining product_id as a required string using Zod.
    { product_id: z.string().describe("Lulu product ID") },

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/devlimelabs/lulu-print-mcp'

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