Skip to main content
Glama

get_insights

Analyze code to identify refactoring opportunities, security vulnerabilities, and maintainability improvements using AI-powered insights.

Instructions

Get AI-generated code insights including refactoring suggestions, security issues, and maintainability analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for 'get_insights' tool, which retrieves AI-generated insights from the loaded analysis data.
    server.tool(
      "get_insights",
      "Get AI-generated code insights including refactoring suggestions, security issues, and maintainability analysis.",
      {},
      async () => {
        const loaded = loadAnalysis();
        if (!loaded) {
          return { content: [{ type: "text" as const, text: "No analysis data found. Run 'CodeAtlas: Analyze Project' first." }] };
        }
    
        const result = {
          project: loaded.projectName,
          stats: loaded.analysis.stats,
          insights: loaded.analysis.insights,
        };
    
        return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] };
      }
    );

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/giauphan/codeatlas-mcp'

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