Skip to main content
Glama

suggest_improvements

Analyze a codebase and recommend improvements for security, performance, or maintainability based on detected patterns and best practices.

Instructions

Analyze the codebase and suggest improvements based on patterns and best practices

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": "suggest_improvements"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoScope of improvements to suggestall

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and does not say whether the tool is read-only or applies changes — 'suggest' hints at read-only but never states it. It also omits cost/latency expectations for whole-codebase analysis and gives no sense of the output shape (ranked list, severity, file locations).

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 front-loaded sentence with no filler or redundancy. It is efficient, though the brevity reflects thin content rather than disciplined compression of rich content.

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

Completeness3/5

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

For a read-only analysis tool with one well-documented parameter and no output schema, the definition covers the essentials of what it does. It leaves notable gaps: return format, whether code is modified, and rough cost, none of which are covered by annotations or schema.

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% and the single 'scope' enum is fully documented with a default, so the schema does the work. The description never mentions that analysis can be narrowed to security, performance, or maintainability, adding nothing beyond structured data — baseline 3 applies.

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 pair (analyze, suggest improvements) and a clear resource (the codebase), plus the basis for suggestions (patterns and best practices). It is distinguishable from search_codebase and get_file_dependencies, though it is broad enough to overlap conceptually with get_project_patterns.

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?

There is no guidance on when to reach for this rather than analyze_workspace or get_project_patterns, and no exclusions or prerequisites. The only signal is the implied 'after you have patterns, ask for suggestions' flow, which the agent must infer.

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