Skip to main content
Glama

memory_enhanced_recommendation

Enhance documentation recommendations by analyzing project context and learning from knowledge graphs to improve deployment workflows.

Instructions

Get enhanced recommendations using learning and knowledge graph

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathYesPath to the project
baseRecommendationYesBase recommendation to enhance
projectFeaturesYes

Implementation Reference

  • Main handler function that enhances base recommendations using project memory, similar projects analysis, success patterns, confidence calculation, and alternative options.
    export async function handleMemoryEnhancedRecommendation(args: { projectPath: string; baseRecommendation: any; projectFeatures: any; }): Promise<any> { await initializeMemory(); // Get similar projects with same features const similarProjects = await getSimilarProjects(args.projectFeatures); // Analyze success patterns const successPatterns = await analyzeSuccessPatterns(similarProjects); // Enhanced recommendation with memory insights const enhancedRecommendation = { ...args.baseRecommendation, memoryEnhanced: { similarProjects, successPatterns, confidence: calculateConfidence(args.baseRecommendation, successPatterns), alternativeOptions: await getAlternativeOptions( args.baseRecommendation, successPatterns, ), }, }; return enhancedRecommendation; }
  • Tool schema definition including input schema for projectPath, baseRecommendation, and detailed projectFeatures.
    { name: "memory_enhanced_recommendation", description: "Get enhanced recommendations using learning and knowledge graph", inputSchema: { type: "object", properties: { projectPath: { type: "string", description: "Path to the project", }, baseRecommendation: { type: "object", description: "Base recommendation to enhance", }, projectFeatures: { type: "object", properties: { language: { type: "string" }, framework: { type: "string" }, size: { type: "string", enum: ["small", "medium", "large"] }, complexity: { type: "string", enum: ["simple", "moderate", "complex"], }, hasTests: { type: "boolean" }, hasCI: { type: "boolean" }, hasDocs: { type: "boolean" }, isOpenSource: { type: "boolean" }, }, required: ["language"], }, }, required: ["projectPath", "baseRecommendation", "projectFeatures"], }, },
  • Re-export of the handler function from integration.ts for use in tool registration.
    handleMemoryIntelligentAnalysis, handleMemoryEnhancedRecommendation, } from "./integration.js";

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/tosin2013/documcp'

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