Skip to main content
Glama

gograph_risk

Read-onlyIdempotent

Evaluate the risk of code changes by computing a normalized 0–100 risk score based on blast radius, complexity, test coverage, and dependencies. Use before committing to understand technical risk.

Instructions

Evaluate the change risk profile of target symbol(s) or uncommitted changes. Combines blast radius, cyclomatic complexity, test coverage, and downstream environment/SQL dependencies into a normalized 0–100 risk score and verdict. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. Requires either symbol or uncommitted=true. WHEN TO USE: Before committing edits or when planning changes to understand the technical risk. NOT TO USE: For post-edit review checklist generation (use gograph_review); for pre-edit plan generation (use gograph_plan). RETURNS: JSON with title, results[] containing risk scores, verdicts, and breakdown metrics, and optional message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNoThe name of the target symbol to run the risk evaluation for (e.g. 'AuthService')
uncommittedNoSet to true to evaluate risk for all uncommitted/modified changes in the repository
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint, and openWorldHint. The description adds context: 'Read-only; no side effects', prerequisite (.gograph/graph.json), and return structure. No contradictions.

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

Conciseness5/5

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

The description is well-structured and concise: function statement, prerequisite, read-only clarification, parameter requirement, when-to-use/not-to-use sections, and return format. Every sentence adds value.

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

Completeness5/5

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

Despite no output schema, the description explains the return JSON structure (title, results[] with risk scores, verdicts, breakdown metrics, optional message). Covers purpose, usage, prerequisites, and output adequately for an AI agent.

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

Parameters5/5

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

Schema coverage is 100% with parameter descriptions. The description adds crucial guidance: 'Requires either symbol or uncommitted=true', clarifying the mutual exclusivity and when to use each.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool evaluates change risk profile, combining blast radius, complexity, test coverage, and dependencies into a normalized score. It distinguishes from siblings like gograph_review and gograph_plan by specifying different use cases.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when to use ('Before committing edits or when planning changes') and when not to use ('For post-edit review... use gograph_review; for pre-edit plan... use gograph_plan'), with sibling tool names.

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/ozgurcd/gograph'

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