Skip to main content
Glama
Pharaoh-so

Pharaoh - Your AI breaks things it can't see

get_regression_risk

Read-only

Assess regression risk for code changes by scoring functions based on blast radius, complexity, and exposure to prevent production breaks.

Instructions

Score functions by regression risk — how likely a change here breaks production.

CALL THIS WHEN: • Before modifying a function — understand blast radius and risk • During code review — prioritize review effort on highest-risk changes • Planning refactors — identify the riskiest code to change carefully • After a regression — find other high-risk functions that need attention

RETURNS: Functions ranked by regression risk score (0-1), with tier (critical/high/medium/low), complexity, entry-point exposure, file churn, and downstream caller count.

TIER: Pharaoh Pro — free tier receives a preview. Summarize what the preview reveals, explain what full data would show for this task, then include the upgrade link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Adds crucial behavioral context beyond readOnlyHint=true: describes detailed return format (risk score 0-1, critical/high/medium/low tiers, complexity metrics, churn data) and discloses tier limitations (Pharaoh Pro vs free preview). No contradictions with annotations.

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?

Well-structured with clear headers (CALL THIS WHEN, RETURNS, TIER). Every section serves distinct purpose. Tier warning about 'preview' vs 'full data' is necessary for user expectations despite being commercial context.

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?

No output schema exists, but RETURNS section comprehensively describes output structure (scores, tiers, complexity metrics). Tier limitations disclosure ensures users understand data completeness constraints. Appropriate for 0-parameter analysis tool.

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

Parameters4/5

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

Input schema has zero parameters, establishing baseline 4 per rubric. Description correctly requires no parameter elaboration since the tool appears to analyze the current context or entire codebase without specific inputs.

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?

Opens with specific verb 'Score' + resource 'functions' + clear concept 'regression risk — how likely a change here breaks production.' Distinguished from sibling get_blast_radius by focusing on quantified risk scoring rather than just mapping dependencies.

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?

Exceptional 'CALL THIS WHEN' section lists 4 specific contextual triggers: before modifying functions, during code review, planning refactors, and after regressions. Provides concrete workflow integration points that clearly separate it from analysis tools like search_functions or get_test_coverage.

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/Pharaoh-so/pharaoh'

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