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

Codebase Recon

pharaoh_recon
Read-only

Runs codebase map, module profiles, function searches, blast radius and dependency paths in one parallel call to plan changes and review pull requests before editing code.

Instructions

Several Pharaoh queries in one call, run in parallel: codebase map, module profiles, function searches, blast radius and module dependency paths.

CALL THIS WHEN: • Planning a change, reviewing a PR or assessing architecture, when the modules and functions to check are known

RETURNS: Each requested section in one response, as the single-purpose tools return it. Per call: up to 5 modules, 3 searches, 3 blast radius targets, 3 dependency pairs.

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": "pharaoh_recon"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name — one of your connected repos.
modulesNoModules to profile
functionsNoFunction searches
include_mapNoInclude the codebase map (default true)
blast_radiusNoBlast radius targets
dependenciesNoModule pairs to trace a dependency path between

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • changedInput schema / properties / blast_radius / items / properties / entity / description
      Previous value: -"Function, file or module name"New value: +"Function name or file:qualifiedName (e.g. src/auth.ts:Auth.check), file path, or module name"
  2. Changed8 schema fields changedv0.1.3
    • changedInput schema / properties / blast_radius / description
      Previous value: -"Blast radius targets (max 3)"New value: +"Blast radius targets"
    • addedInput schema / properties / blast_radius / maxItems
      Added value: +3
    • changedInput schema / properties / dependencies / description
      Previous value: -"Module pairs to trace a dependency path between (max 3)"New value: +"Module pairs to trace a dependency path between"
    • addedInput schema / properties / dependencies / maxItems
      Added value: +3
    • changedInput schema / properties / functions / description
      Previous value: -"Function searches (max 3)"New value: +"Function searches"
    • addedInput schema / properties / functions / maxItems
      Added value: +3
    • changedInput schema / properties / modules / description
      Previous value: -"Modules to profile (max 5)"New value: +"Modules to profile"
    • addedInput schema / properties / modules / maxItems
      Added value: +5
  3. Changed8 schema fields changedv0.1.1
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / blast_radius
      Added value: +{
      +  "description": "Blast radius targets (max 3)",
      +  "items": {
      +    "properties": {
      +      "entity": {
      +        "description": "Function, file or module name",
      +        "type": "string"
      +      },
      +      "entity_type": {
      +        "description": "Default: function",
      +        "enum": [
      +          "function",
      +          "file",
      +          "module"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "entity"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / dependencies
      Added value: +{
      +  "description": "Module pairs to trace a dependency path between (max 3)",
      +  "items": {
      +    "properties": {
      +      "from": {
      +        "type": "string"
      +      },
      +      "to": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "from",
      +      "to"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / functions
      Added value: +{
      +  "description": "Function searches (max 3)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / include_map
      Added value: +{
      +  "description": "Include the codebase map (default true)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / modules
      Added value: +{
      +  "description": "Modules to profile (max 5)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / repo
      Added value: +{
      +  "description": "Repository name — one of your connected repos.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "repo"
      +]
  4. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavior beyond that — parallel execution and a single combined response — but the stated caps (5 modules, 3 searches, 3 blast radius, 3 pairs) merely restate the schema's maxItems values, and nothing is said about what happens when a section fails or is omitted.

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?

Three clearly labeled blocks — purpose, when to call, what's returned — with the composite nature front-loaded. Every sentence carries information; there is no filler or redundancy.

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 multi-query composite with no output schema, the description does the essential work of explaining the return shape by deferring to the single-purpose tools' formats, and it discloses the per-call caps. Minor gap: it doesn't say whether omitted sections are simply absent or return empty, which matters for an agent parsing the combined response.

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 every parameter already carries documentation, including the qualified-name syntax for blast_radius entities. The description adds no parameter-level meaning beyond repeating the per-call limits, so the baseline of 3 applies.

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 composite verb+resource: 'Several Pharaoh queries in one call, run in parallel', then enumerates exactly which queries (codebase map, module profiles, function searches, blast radius, dependency paths). This clearly implies it is the batch counterpart to the single-purpose siblings, though it never names those siblings explicitly.

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?

The 'CALL THIS WHEN' block gives concrete scenarios (planning a change, reviewing a PR, assessing architecture) and a selecting condition — 'when the modules and functions to check are known'. That implicitly excludes exploratory use, but it does not explicitly say to prefer get_codebase_map, search_functions, etc. when only one query is needed.

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