Skip to main content
Glama

get-product-details

Retrieve detailed specifications and information for any Lulu product by providing its unique product ID, enabling accurate product management and integration.

Instructions

Get specifications and details for a Lulu product

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYesLulu product ID

Implementation Reference

  • The async handler function that implements the get-product-details tool logic, currently returning mock product data.
    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 using Zod validation.
    { product_id: z.string().describe("Lulu product ID") },
  • src/server.ts:57-90 (registration)
    Registers the get-product-details tool with the MCP server instance, including schema and inline handler.
    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 }; } } );

Other Tools

Related Tools

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