Skip to main content
Glama
MCP Server Codebase Analyzer

MCP Server Codebase Analyzer

by kushalsai-01

generate_remediation_plan

Generates deterministic root-cause analysis and actionable remediation steps from incident payloads and source file content to resolve code issues.

Instructions

Generates deterministic root-cause analysis and actionable remediation steps from an incident payload and source file content.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "incident": "<incident>",
      "fileContent": "<fileContent>"
    },
    "name": "generate_remediation_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
incidentYes
fileContentYes

Output Schema

NameRequiredDescriptionDefault
fixStepsYes
riskLevelYes
rootCauseYes
codeSuggestionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/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. 'Deterministic' is a genuine behavioral disclosure that signals repeatable output and no side effects, and the input-driven framing suggests a pure computation. However, it says nothing about permissions, rate limits, or whether the tool persists anything, leaving the mutation/safety profile unstated.

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, and both outputs and inputs are packed in efficiently. It is dense but not bloated; only a slight expansion on usage would be worth the words.

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?

An output schema exists, so return-value explanation is unnecessary, and 'deterministic' covers the main behavioral question. The gaps are on the input side: with a nested schema at 0% description coverage, the caller gets no guidance on how fileContent relates to incident.file/line before invoking.

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 description coverage is 0% and there is a nested incident object with five required subfields, so the description must compensate. It names both inputs ('incident payload', 'source file content') but does not clarify key semantics such as whether fileContent must be the full source of incident.file or just a snippet, or which stack-trace format is expected.

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 specific verb ('Generates') with two concrete outputs (root-cause analysis, remediation steps) and names both inputs (incident payload, source file content). This is clearly distinguishable from siblings like fetch_system_incidents and analyze_codebase_health, though it never explicitly contrasts itself with them.

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 when-to-use guidance, no stated prerequisites (e.g. that an incident must first be retrieved), and no mention of alternatives. The agent must infer that this is a post-incident-remediation step from the input names alone.

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