> For the complete documentation index, see [llms.txt](https://pharaoh.so/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pharaoh.so/docs/use-pharaoh/overview.md). Agents can also search and read this documentation through its [MCP server](https://pharaoh.so/docs/~gitbook/mcp).

# Tool reference

Pharaoh's MCP tools: codebase map, module context, function search, blast radius and unused-code checks. What each one answers and when to call it.

Pharaoh exposes MCP tools that your agent calls automatically. They fall into four categories: **Orient** (understand the codebase), **Investigate** (trace impact), **Audit** (find dead code), and **Manage** (account and repo refresh).

The installed proxy also offers `design_context` in a verified checkout with a compatible analyzer. Before a UI edit, ask it for the target file, or run `pharaoh-mcp design context --target <file>` from that checkout.

## All Tools

| Tool                  | Category    | Description                                                                                                 |
| --------------------- | ----------- | ----------------------------------------------------------------------------------------------------------- |
| `pharaoh_recon`       | Orient      | Batched reconnaissance — codebase map + module context + function search + blast radius in one call         |
| `get_codebase_map`    | Orient      | Full structural overview — modules, dependency graph, entry points, hot files                               |
| `get_module_context`  | Orient      | Complete module profile — files, functions, DB tables, endpoints, env vars, external callers                |
| `search_functions`    | Orient      | Find functions by name or concept, to check whether one already exists                                      |
| `get_blast_radius`    | Investigate | Trace all downstream callers before refactoring — endpoints, cron jobs, DB operations affected              |
| `get_unused_code`     | Audit       | Find functions no entry point reaches (Dead vs Possibly unused), or check that named functions are wired in |
| `get_issue`           | Audit       | A Codebase Health issue by its ID: findings, files, related findings, file-disjoint groups and score gains  |
| `pharaoh_setup`       | Manage      | Connection, repo mapping and access status, and where to track Codebase Health                              |
| `pharaoh_account`     | Manage      | Your plan and mapped repos in each workspace, the setup page and billing                                    |
| `pharaoh_manage_repo` | Manage      | Re-map a repo now                                                                                           |
| `pharaoh_update`      | Manage      | Verify the newest npx proxy release and stage it for your next session                                      |

## Use a tool

Ask your agent to call a tool by name. The connected client exposes its current input schema. For detailed inputs, see the [tool reference](https://pharaoh.so/llms-full.txt).

Start with `get_codebase_map`. Use `get_blast_radius` for production callers (one to five hops), and `get_unused_code` to check names or `Class.method`. Results describe the mapped default branch. A missing direct test link is not runtime test coverage.

[Scope and troubleshooting](https://pharaoh.so/docs/use-pharaoh/troubleshooting.md) · [Account and billing](https://pharaoh.so/docs/use-pharaoh/pricing.md)
