Skip to main content
Glama
Pharaoh-so

Pharaoh - Your AI breaks things it can't see

get_codebase_map

Read-only

Generate a comprehensive codebase architecture map showing modules, dependencies, frequently changed files, and API endpoints to understand structure before starting development tasks.

Instructions

Pharaoh is a codebase knowledge graph. Call this FIRST — get the full architecture instead of reading files one-by-one.

CALL THIS WHEN: • You're starting a new task and need to understand the codebase structure • You need to know which modules exist and how they relate to each other • You want to find the most actively changed files (likely where bugs live) • You need to see all API endpoints at a glance

RETURNS: All modules with file counts and LOC, dependency graph with weights and bidirectional warnings, hot files (most changed in last 90 days), and all HTTP endpoints with their handler files.

EXAMPLES: • "What modules does this codebase have?" • "How is the codebase structured?" • "Which files change the most?" • "Are there any circular dependencies between modules?"

WHY NOT JUST READ FILES: Manually reading directory trees and package.json files gives you file structure but not dependency relationships, change frequency, or endpoint mappings. This gives you the full architectural picture in one call instead of 20+ file reads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Substantial value beyond annotations. Details return structure (modules with LOC, dependency graph with weights/bidirectional warnings, hot files defined as 'most changed in last 90 days', HTTP endpoints). Does not contradict readOnlyHint=true. Lacks operational details like caching, rate limits, or performance cost of generating full map.

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?

Well-structured with clear headers (CALL THIS WHEN, RETURNS, EXAMPLES, WHY NOT JUST READ FILES). Every section earns its place. Front-loaded with critical guidance 'Call this FIRST'. Length is justified by complexity of the tool's output and usage context.

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?

Excellent completeness for a zero-parameter tool. Compensates for lack of output schema by detailing RETURNS section with specific data structures (weights, bidirectional warnings, 90-day windows). Explains scope and limitations of the knowledge graph sufficiently for agent to use effectively.

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?

Zero parameters present (baseline 4). Schema is empty object. Description correctly omits parameter discussion since none exist, but signals this is a simple invocation via 'Call this FIRST' and lack of filtering options implied by 'no user/workspace filtering' in sibling examples.

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?

Clear specific action ('get the full architecture') and resource ('codebase knowledge graph'). Explicitly distinguishes from siblings by positioning as the FIRST call and contrasting with 'reading files one-by-one' and manual directory traversal.

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 explicit guidelines with 'CALL THIS WHEN:' bullet points covering 4 specific scenarios. Includes 'WHY NOT JUST READ FILES' section that explicitly contrasts with the manual alternative approach, explaining the value add (dependency relationships, change frequency).

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