Skip to main content
Glama

create_research_template

Generate structured research template files to document findings, supporting organized analysis and decision records in codebases.

Instructions

Create a research template file for documenting findings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoResearch categorygeneral
researchPathNoPath to research directorydocs/research
titleYesTitle of the research

Implementation Reference

  • The core handler function for the 'create_research_template' MCP tool. Processes input parameters, dynamically imports the template utility, generates file path and name, embeds the template in a rich MCP text response, and handles errors with custom McpAdrError.
    export async function createResearchTemplate(args: { title?: string; projectPath?: string; researchType?: string; category?: string; researchPath?: string; includeProjectAnalysis?: boolean; }): Promise<any> { const { title = args.researchType || 'Research Template', projectPath: _projectPath = '/project', researchType = 'general', category = researchType || 'general', researchPath = 'docs/research', includeProjectAnalysis: _includeProjectAnalysis = false, } = args; try { // Validate title parameter if (!title || typeof title !== 'string') { throw new Error('Title is required and must be a string'); } const { createResearchTemplate } = await import('../utils/research-integration.js'); const template = createResearchTemplate(title, category); const filename = `${title .toLowerCase() .replace(/[^a-z0-9\s-]/g, '') .replace(/\s+/g, '-')}.md`; const fullPath = `${researchPath}/${filename}`; return { content: [ { type: 'text', text: `# Research Template Created ## Template Details - **Title**: ${title} - **Category**: ${category} - **Filename**: ${filename} - **Full Path**: ${fullPath} ## Template Content \`\`\`markdown ${template} \`\`\` ## Next Steps 1. **Save the template** to the specified path: \`${fullPath}\` 2. **Fill in the research details** following the template structure 3. **Conduct your research** and document findings 4. **Use the research integration tool** to analyze impact on ADRs ## Template Sections - **Research Question**: Define what you're investigating - **Background**: Provide context and motivation - **Methodology**: Describe your research approach - **Key Findings**: Document specific discoveries with evidence - **Implications**: Analyze architectural and technology impact - **Recommendations**: Provide actionable suggestions - **Related ADRs**: Link to potentially affected decisions - **Next Steps**: Plan follow-up actions ## Research Best Practices - Use clear, specific research questions - Document evidence and sources thoroughly - Assess confidence levels for findings - Consider architectural implications early - Link findings to existing ADRs when relevant - Plan for regular research reviews and updates `, }, ], }; } catch (error) { throw new McpAdrError( `Failed to create research template: ${error instanceof Error ? error.message : String(error)}`, 'TEMPLATE_CREATION_ERROR' ); } }
  • Supporting utility function that generates the structured Markdown template content used by the main handler. Includes sections for research question, findings, implications, recommendations, and more.
    export function createResearchTemplate(title: string, category: string = 'general'): string { const date = new Date().toISOString().split('T')[0]; return `# ${title} **Date**: ${date} **Category**: ${category} **Status**: In Progress ## Research Question [What specific question or problem is this research addressing?] ## Background [Provide context and background information] ## Methodology [Describe how the research was conducted] ## Key Findings ### Finding 1 - **Description**: [Detailed description] - **Evidence**: [Supporting evidence or data] - **Confidence**: [High/Medium/Low] - **Source**: [Source of information] ### Finding 2 - **Description**: [Detailed description] - **Evidence**: [Supporting evidence or data] - **Confidence**: [High/Medium/Low] - **Source**: [Source of information] ## Implications ### Architectural Impact [How do these findings impact architectural decisions?] ### Technology Choices [What technology choices are affected?] ### Risk Assessment [What risks are identified or mitigated?] ## Recommendations 1. [Specific recommendation 1] 2. [Specific recommendation 2] 3. [Specific recommendation 3] ## Related ADRs - [List any ADRs that might be affected by this research] ## Next Steps - [ ] [Action item 1] - [ ] [Action item 2] - [ ] [Action item 3] ## References - [Reference 1] - [Reference 2] - [Reference 3] `; }
  • Tool name and description listed in server context generator, likely part of tool registry or documentation generation for MCP tools list.
    name: 'create_research_template', description: 'Create structured research templates for investigations',

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/mcp-adr-analysis-server'

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