Skip to main content
Glama
MCP Server Codebase Analyzer

MCP Server Codebase Analyzer

by kushalsai-01

analyze_codebase_health

Analyzes repository health with ts-morph to identify large files, missing function types, and potential circular dependencies, helping prioritize codebase maintenance.

Instructions

Analyzes repository health using ts-morph and reports large files, missing function types, and potential circular dependencies.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_codebase_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxFilesNo
repoPathNo/app
excludeGlobsNo
includeGlobsNo

Output Schema

NameRequiredDescriptionDefault
issuesYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the burden; 'analyzes' and 'reports' imply a read-only diagnostic, and naming ts-morph plus the finding categories adds useful method context. However it does not explicitly confirm non-mutation, permissions, or operational limits such as the file cap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence states the tool's method and output categories without filler. It is appropriately concise for a short capability summary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Purpose and output categories are clear, and the output schema covers return values, but the description omits parameter meanings, usage context, and scan constraints for a tool with four undocumented parameters and no annotations. That leaves material gaps for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Four parameters exist with 0% schema description coverage, and the description does not mention repoPath, include/exclude globs, or maxFiles. It therefore adds no meaning beyond the schema and does not compensate for undocumented parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Analyzes') and names the resource ('repository health'), then enumerates the three findings it reports. It is clear what the tool does, though it does not explicitly differentiate itself from the remediation-plan sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives no when-to-use, when-not-to-use, prerequisite, or alternative guidance. At best an agent can infer it is for codebase diagnostics from the purpose sentence, so this is weak.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.