Skip to main content
Glama

Houtini-lm

by houtini-ai

suggest_refactoring

Analyze code to suggest refactoring improvements for readability, performance, and maintainability using project-specific patterns for single or multiple files.

Instructions

Analyze code and suggest refactoring improvements with project-specific patterns (handles both single and multi-file)

WORKFLOW: Ideal for creating production-ready code, tests, and documentation TIP: Generate unlimited iterations locally, then review with Claude SAVES: Claude context for strategic decisions

Input Schema

NameRequiredDescriptionDefault
analysisDepthNoLevel of analysis detaildetailed
analysisTypeNoType of refactoring to focus oncomprehensive
codeNoThe code to analyze for refactoring (for single-file analysis)
contextNoOptional context for project-specific refactoring
filePathNoPath to single file to refactor
filesNoArray of specific file paths (for multi-file analysis)
focusAreasNoAreas to focus on for refactoring
languageNoProgramming languagejavascript
maxDepthNoMaximum directory depth for multi-file discovery (1-5)
projectPathNoPath to project root (for multi-file refactoring analysis)

Input Schema (JSON Schema)

{ "properties": { "analysisDepth": { "default": "detailed", "description": "Level of analysis detail", "enum": [ "basic", "detailed", "comprehensive" ], "type": "string" }, "analysisType": { "default": "comprehensive", "description": "Type of refactoring to focus on", "enum": [ "readability", "performance", "comprehensive" ], "type": "string" }, "code": { "description": "The code to analyze for refactoring (for single-file analysis)", "type": "string" }, "context": { "description": "Optional context for project-specific refactoring", "type": "object" }, "filePath": { "description": "Path to single file to refactor", "type": "string" }, "files": { "description": "Array of specific file paths (for multi-file analysis)", "type": "array" }, "focusAreas": { "default": [ "readability", "maintainability" ], "description": "Areas to focus on for refactoring", "type": "array" }, "language": { "default": "javascript", "description": "Programming language", "type": "string" }, "maxDepth": { "default": 3, "description": "Maximum directory depth for multi-file discovery (1-5)", "type": "number" }, "projectPath": { "description": "Path to project root (for multi-file refactoring analysis)", "type": "string" } }, "required": [], "type": "object" }

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/houtini-ai/lm'

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