Skip to main content
Glama

search_profiles

Find relevant profiles on the Dev MCP Prompt Server to streamline AI-powered development workflows, enhancing tasks like design, setup, and debugging.

Instructions

Search for profiles

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The switch case in the CallToolRequest handler that executes the "search_profiles" tool. It calls promptManager.searchPromptsByTag("profile"), logs the count, and returns the matching prompts as a JSON string in the response content.
    case "search_profiles": const profilePrompts = await this.promptManager.searchPromptsByTag( "profile" ); logger.info( `Search results for "profile" in tags: ${profilePrompts.length} prompts` ); return { content: [ { type: "text", text: JSON.stringify(profilePrompts, null, 2), }, ], };
  • Core helper function searchPromptsByTag that iterates over all loaded prompts, checks if the given tag (e.g., 'profile') is included in their tags array, assigns a score of 1 if matched, and returns the matching prompts sorted by score (all have score 1 so order preserved). Called by the search_profiles handler.
    async searchPromptsByTag(tag: string): Promise<PromptWithScore[]> { const lowercaseQuery = tag.toLowerCase(); const results: PromptWithScore[] = []; for (const prompt of this.prompts.values()) { let score = 0; // Check tags if ( prompt.tags && prompt.tags.some((tag) => tag.toLowerCase().includes(lowercaseQuery)) ) { score += 1; } if (score > 0) { results.push({ ...prompt, searchScore: score }); } } // Sort by score (descending) return results; }

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/LeonNonnast/mcpdevprompts'

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