Skip to main content
Glama
recepgocmen

Blue Perfumery MCP Server

by recepgocmen

list_all_perfumes

Retrieve a comprehensive list of all perfumes available in the Blue Perfumery collection to explore, compare, and select fragrances.

Instructions

List all perfumes in the Blue Perfumery collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'list_all_perfumes' tool. It fetches all active perfumes from the Product model using Mongoose and returns a JSON-formatted response with the list.
    case "list_all_perfumes": { const perfumes = await Product.find({ status: "active" }).lean(); return { content: [ { type: "text", text: JSON.stringify({ success: true, count: perfumes.length, perfumes: perfumes, }, null, 2), }, ], }; }
  • src/index.ts:29-37 (registration)
    Registration of the 'list_all_perfumes' tool in the ListToolsRequestSchema handler, specifying name, description, and empty input schema.
    { name: "list_all_perfumes", description: "List all perfumes in the Blue Perfumery collection", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Input schema for the 'list_all_perfumes' tool, which requires no parameters (empty object).
    inputSchema: { type: "object", properties: {}, required: [], },
  • Import of the Product Mongoose model used in the tool handler for database queries.
    import { Product, type Perfume } from "./models/Product.js";

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/recepgocmen/blue-perfumery-mcp-server'

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