Skip to main content
Glama
Pharaoh - Your AI breaks things it can't see

Pharaoh - Your AI breaks things it can't see

by Pharaoh-so

Blast Radius

get_blast_radius
Read-only

Call before changing a signature, refactoring, or deleting code to find detected production callers, entry points, and risk down to a given hop depth.

Instructions

What a change to a function, file or module reaches.

CALL THIS WHEN: • Changing a signature, refactoring or deleting code • Finding a change's callers or entry points

RETURNS: Detected production callers (depth 1 is direct only). Hosted adds risk, endpoints, cron jobs and DB operations. Verified worktrees report saved-file callers and coverage.

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>",
      "entity": "<entity>",
      "entity_type": "<entity_type>"
    },
    "name": "get_blast_radius"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name — one of your connected repos.
depthNoHow many hops to trace (default: 3, range: 1–5)
scopeNoHosted queries the default branch. Local requires a verified worktree.
entityYesFunction name or file:qualifiedName (e.g. src/auth.ts:Auth.check), file path, or module name
entity_typeYesType of entity
local_contextNoCheckout reference from the active NPX hook. Omit without one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.4
    • changedInput schema / properties / entity / description
      Previous value: -"Function name, file path, or module name"New value: +"Function name or file:qualifiedName (e.g. src/auth.ts:Auth.check), file path, or module name"
    • addedInput schema / properties / local_context
      Added value: +{
      +  "description": "Checkout reference from the active NPX hook. Omit without one.",
      +  "pattern": "^[A-Za-z0-9_-]{43}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "Hosted queries the default branch. Local requires a verified worktree.",
      +  "enum": [
      +    "auto",
      +    "local",
      +    "hosted"
      +  ],
      +  "type": "string"
      +}
  2. Changed6 schema fields changedv0.1.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / depth
      Added value: +{
      +  "description": "How many hops to trace (default: 3, range: 1–5)",
      +  "maximum": 5,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / entity
      Added value: +{
      +  "description": "Function name, file path, or module name",
      +  "type": "string"
      +}
    • addedInput schema / properties / entity_type
      Added value: +{
      +  "description": "Type of entity",
      +  "enum": [
      +    "function",
      +    "file",
      +    "module"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / repo
      Added value: +{
      +  "description": "Repository name — one of your connected repos.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "repo",
      +  "entity",
      +  "entity_type"
      +]
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, so safety is covered without description help. The description does add real behavioral context beyond that: depth 1 means direct callers only, hosted scope enriches results with risk/endpoints/cron/DB operations, and verified worktrees report saved-file callers. That added context is valuable, but it is framed as return-value behavior rather than operational traits like failure modes on unresolved entities or latency on deep traces.

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?

The definition is short and front-loaded: one-line purpose, a bulleted when-to-use block, then a returns block. Every section earns its place, especially RETURNS given there is no output schema. The opening sentence is a verbless fragment and the RETURNS block is dense, which keeps it from a 5.

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?

With no output schema, the description takes on explaining return content, and it does so with the depth-1 caveat, hosted enrichment and worktree behavior. Combined with a fully documented six-parameter schema and read-only annotations, an agent has enough to call it correctly. It omits edge behavior such as what occurs when the entity cannot be resolved or the repo is not connected.

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 coverage is 100%, so every parameter including enums and the local_context pattern is already documented, establishing a baseline of 3. The description contributes some extra semantics: 'depth 1 is direct only' clarifies the depth parameter's meaning, and the hosted/verified-worktree distinction clarifies scope. That is genuine added meaning, but the description never ties these hints to the parameter names explicitly.

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?

The opening line names the specific resource and operation: the reach/impact of a change to a function, file or module. The 'CALL THIS WHEN' bullets sharpen this into concrete scenarios (signature changes, refactors, deletions, caller discovery). It does not explicitly name or exclude any sibling tool, so sibling differentiation is left to inference.

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

Usage Guidelines4/5

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

Two explicit triggering scenarios are given, covering both proactive (about to refactor/delete) and investigative (who calls this) use. There is no when-not guidance and no named alternative such as search_functions for plain symbol lookup, so the agent must infer the boundary itself.

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