Skip to main content
Glama
Kong

For Five Coffee MCP Server

by Kong

get_menu_categories

Retrieve all menu categories from For Five Coffee café to organize and navigate available food and beverage options.

Instructions

Get all available menu categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main execution function for the 'get_menu_categories' tool. Fetches the menu data (from cache or live sources) and returns a JSON response containing all available menu categories and the total count.
    async getMenuCategories() { const menuData = await this.fetchMenuData(); return { content: [ { type: 'text', text: JSON.stringify( { categories: menuData.categories, totalCategories: menuData.categories.length, }, null, 2 ), }, ], }; }
  • The input schema for the tool, specifying an empty object (no parameters required). Part of the tool definition in the MCP ListTools response.
    inputSchema: { type: 'object', properties: {}, },
  • server.js:65-72 (registration)
    Tool registration in the MCP ListToolsRequestSchema handler, defining the tool's name, description, and schema for discovery.
    { name: 'get_menu_categories', description: 'Get all available menu categories', inputSchema: { type: 'object', properties: {}, }, },
  • server.js:107-108 (registration)
    Tool dispatch registration in the MCP CallToolRequestSchema switch statement, routing calls to the handler function.
    case 'get_menu_categories': return await this.getMenuCategories();
  • server.js:324-325 (registration)
    Additional tool dispatch registration in the HTTP /mcp endpoint's tools/call handler.
    case 'get_menu_categories': result = await this.getMenuCategories();

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/Kong/menu-mpc'

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