Skip to main content
Glama

risky_to_change

Ranks code symbols by change risk by combining cyclomatic complexity with git churn, helping identify complex, frequently modified hotspots within a configurable history window.

Instructions

Ranks symbols by risk: combines cyclomatic complexity with git churn rate. High hotspot scores mean the code is both complex and frequently changed. Configurable time window and complexity threshold.

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": {
      "repo": "<repo>"
    },
    "name": "risky_to_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays of git history to analyze
repoYesRepository name (as shown in list_repos)
top_nNoNumber of hotspots to return
min_complexityNoMinimum cyclomatic complexity to consider

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully explains that scores combine complexity with churn and how to interpret a high hotspot score, but it never says this is a read-only analysis, whether results are cached, or what the returned hotspot list looks like.

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?

Three short sentences, front-loaded with the verb and the headline metric, with no filler. The final sentence is slightly redundant with the schema but still earns its place as a hint about tuning.

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

Completeness4/5

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

For a four-parameter analytical tool with no annotations and no output schema, the definition covers the computation and score interpretation well. It leaves the return shape and any read-only guarantees unstated, which keeps it from a 5.

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 days, min_complexity, and top_n are already documented. The description only restates that the time window and complexity threshold are configurable, adding no units, defaults, or interaction details beyond the schema.

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 and resource ("Ranks symbols by risk") and then defines the composite metric, so an agent knows exactly what is produced. It does not distinguish itself from possibly overlapping siblings such as find_tech_debt or code_health_report, so it stops short of a 5.

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 explicit when-to-use, when-not-to-use, or named alternative. The only guidance is implicit in "Configurable time window and complexity threshold," which hints at tuning but not at selecting this tool over the health/debt tools.

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