Skip to main content
Glama

step_by_step_analysis

Break down complex tasks into manageable steps with detailed analysis. Specify the task, provide context, and choose the level of detail for structured guidance.

Instructions

IMPORTANT: This tool should be automatically called when users say "단계별", "차근차근", "하나씩", "step by step", "one by one", "gradually" or similar keywords. Perform detailed step-by-step analysis

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNoAdditional context for the task
detailLevelNoLevel of detail
taskYesTask to analyze step by step

Implementation Reference

  • The main handler function that implements the logic for the 'step_by_step_analysis' tool, generating step-by-step breakdown based on task, context, and detail level.
    export async function stepByStepAnalysis(args: { task: string; context?: string; detailLevel?: string }): Promise<ToolResult> { const { task, context = '', detailLevel = 'detailed' } = args; const stepCount = detailLevel === 'basic' ? 3 : detailLevel === 'detailed' ? 5 : 7; const stepAnalysis = { action: 'step_by_step_analysis', task, context, detailLevel, steps: Array.from({ length: stepCount }, (_, i) => { const stepNum = i + 1; return { stepNumber: stepNum, title: `Step ${stepNum}: ${task} - Phase ${stepNum}`, description: `Detailed analysis of ${task} in step ${stepNum}`, actions: [ `Analyze requirements for step ${stepNum}`, `Identify dependencies and prerequisites`, `Execute the planned actions`, `Validate results and check for issues`, `Prepare for next step` ], checkpoints: [ `Verify step ${stepNum} requirements are met`, `Confirm outputs are as expected`, `Check for any blocking issues` ], estimatedTime: detailLevel === 'comprehensive' ? `${stepNum * 10} minutes` : `${stepNum * 5} minutes` }; }), summary: { totalSteps: stepCount, estimatedTotalTime: detailLevel === 'comprehensive' ? `${stepCount * 35} minutes` : `${stepCount * 20} minutes`, complexity: detailLevel === 'basic' ? 'low' : detailLevel === 'detailed' ? 'medium' : 'high' }, status: 'success' }; return { content: [{ type: 'text', text: `Task: ${task}\nDetail: ${detailLevel}\nSteps: ${stepCount}\n\n${stepAnalysis.steps.map(s => `Step ${s.stepNumber}: ${s.title}\n Time: ${s.estimatedTime}\n Actions: ${s.actions.join(', ')}\n Checkpoints: ${s.checkpoints.join(', ')}`).join('\n\n')}\n\nTotal Time: ${stepAnalysis.summary.estimatedTotalTime} | Complexity: ${stepAnalysis.summary.complexity}` }] }; }
  • The ToolDefinition object defining the schema, name, description, inputSchema, and annotations for the 'step_by_step_analysis' tool.
    export const stepByStepAnalysisDefinition: ToolDefinition = { name: 'step_by_step_analysis', description: '단계별|차근차근|하나씩|step by step|one by one|gradually - Perform detailed step-by-step analysis', inputSchema: { type: 'object', properties: { task: { type: 'string', description: 'Task to analyze step by step' }, context: { type: 'string', description: 'Additional context for the task' }, detailLevel: { type: 'string', description: 'Level of detail', enum: ['basic', 'detailed', 'comprehensive'] } }, required: ['task'] }, annotations: { title: 'Step-by-Step Analysis', audience: ['user', 'assistant'] } };
  • src/index.ts:52-104 (registration)
    Registration of the tool definition in the main tools array used by the MCP server for listing available tools.
    const tools = [ // Time Utility Tools getCurrentTimeDefinition, // Semantic Code Analysis Tools (Serena-inspired) findSymbolDefinition, findReferencesDefinition, // Sequential Thinking Tools createThinkingChainDefinition, analyzeProblemDefinition, stepByStepAnalysisDefinition, breakDownProblemDefinition, thinkAloudProcessDefinition, formatAsPlanDefinition, // Browser Development Tools monitorConsoleLogsDefinition, inspectNetworkRequestsDefinition, // Memory Management Tools saveMemoryDefinition, recallMemoryDefinition, listMemoriesDefinition, deleteMemoryDefinition, searchMemoriesDefinition, updateMemoryDefinition, autoSaveContextDefinition, restoreSessionContextDefinition, prioritizeMemoryDefinition, startSessionDefinition, // Convention Tools getCodingGuideDefinition, applyQualityRulesDefinition, validateCodeQualityDefinition, analyzeComplexityDefinition, checkCouplingCohesionDefinition, suggestImprovementsDefinition, // Planning Tools generatePrdDefinition, createUserStoriesDefinition, analyzeRequirementsDefinition, featureRoadmapDefinition, // Prompt Enhancement Tools enhancePromptDefinition, analyzePromptDefinition, // UI Preview Tools previewUiAsciiDefinition ];
  • src/index.ts:145-146 (registration)
    Dispatch/registration in the switch statement that routes calls to the stepByStepAnalysis handler function.
    case 'step_by_step_analysis': return await stepByStepAnalysis(args as any) as CallToolResult;

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/su-record/hi-ai'

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