Skip to main content
Glama

get_prompt_categories

Retrieve all available prompt categories from the Open MCP Server to organize and access reusable templates for tasks like planning, code review, and summarization.

Instructions

Get all available prompt categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implements the 'get_prompt_categories' MCP tool by registering it on the server with an inline async handler that fetches categories from the prompt registry and formats the response as MCP content.
    server.tool("get_prompt_categories", "Get all available prompt categories", {}, async () => { const categories = registry.prompts.getCategories(); return { content: [ { type: "text", text: JSON.stringify( { categories, count: categories.length, }, null, 2 ), }, ], }; });

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/ishuru/open-mcp'

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