Skip to main content
Glama

complexity_report

Analyze codebase complexity and generate a full report with trends to identify maintenance risks. Use this tool to track complexity over time and prioritize refactoring.

Instructions

Generate a full complexity analysis report with trends (Pro feature)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
directoryYesProject directory
Behavior2/5

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

No annotations are provided, so the description carries full responsibility. It discloses that the tool generates a report and is a Pro feature but says nothing about output format, side effects, required API key, or whether the operation is read-only. This is a meaningful gap for a tool with an api_key parameter.

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?

A single efficient sentence with the core action front-loaded and the 'Pro feature' caveat in parentheses. No redundant phrasing, though it could have used the space to add parameter or output context.

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?

Given no output schema, no annotations, and an undocumented api_key parameter, the description is not complete enough for an agent to confidently invoke this tool. Missing return format, prerequisite behavior, and differentiation from sibling complexity tools.

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

Parameters2/5

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

Schema coverage is only 50%; directory has a description but api_key does not. The description adds no parameter-level meaning beyond the 'Pro feature' hint, which only indirectly relates to api_key. It does not compensate for the undocumented api_key parameter.

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?

States a clear verb ('generate') and resource ('full complexity analysis report with trends'), which differentiates it somewhat from sibling complexity_analyze or complexity_suggest_simplifications. However, it does not explicitly name alternatives, so sibling differentiation is implicit rather than explicit.

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 on when to use this tool instead of complexity_analyze or complexity_suggest_simplifications. The 'Pro feature' note hints at a prerequisite but does not explain context, alternatives, or exclusions.

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/barnburner121/claude-plugin-marketplace'

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