Skip to main content
Glama

search_profiles

Find development profiles by searching through curated prompts for UI/UX design, project setup, and debugging tasks to enhance AI-powered workflows.

Instructions

Search for profiles

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'search_profiles' tool: searches for prompts with the 'profile' tag using PromptManager and returns a JSON-formatted list of matching prompts.
    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), }, ], };
  • Helper function searchPromptsByTag in PromptManager class that implements the tag-based search logic used by the search_profiles tool 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; }

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