Skip to main content
Glama

analyze

Scan a codebase for quality issues: dead code, similar functions, complexity, large files, outdated patterns, and undocumented code. Generate full analysis or focused summaries to identify and fix problems.

Instructions

Code quality analysis. Actions: dead_code|similar_functions|complexity|large_files|outdated_patterns|full_analysis|analysis_summary|undocumented

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to scan
levelNoFor undocumented: strictness level
actionYesAnalysis type to run
codeOnlyNoFor outdated_patterns: only check code
depsOnlyNoFor outdated_patterns: only check deps
thresholdNoFor similar_functions: min similarity % (default: 60)
includeItemsNoFor full_analysis: include individual items
minComplexityNoFor complexity: minimum threshold (default: 1)
onlyProblematicNoFor complexity/large_files: only show issues
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not state whether the tool is read-only, what permissions are needed, what output format to expect, or any side effects. The term 'analysis' implies non-destructive behavior, but that is not explicit, leaving significant ambiguity.

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

Conciseness4/5

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

The description is a single concise sentence that front-loads the purpose ('Code quality analysis') and then lists actions. It is efficient, but the action list duplicates the schema enum values and could be better structured (e.g., separating the action list from the core description). Every word serves a purpose, though the list is somewhat unwieldy.

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?

This is a complex tool with 9 parameters, 2 required, and no output schema. The description does not explain what each action returns, how parameters like threshold or level affect behavior, or what the output looks like. The schema provides parameter descriptions, but the tool-level description is too sparse to enable correct invocation without additional research.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description does not add any parameter semantics beyond what the schema already provides—it merely repeats the action enum values. Since the schema fully documents all 9 parameters with descriptions, the tool-level description adds no extra meaning.

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 states 'Code quality analysis' as the resource and lists specific action types, making the tool's purpose clear. It differentiates from sibling tools by focusing on analysis, though it doesn't explicitly compare to alternatives. The verb 'analyze' is implied by the name and action list, so it's more than a tautology.

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?

No guidance is provided on when to use this tool versus alternatives, or how to choose among the listed actions. The action list implies use cases (e.g., dead_code, complexity) but lacks context on prerequisites, limitations, or when not to use it. This is a clear gap for a tool with multiple distinct modes.

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

Install Server

Other Tools

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/rnd-pro/project-graph-mcp'

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