Skip to main content
Glama
Pharaoh-so

Pharaoh - Your AI breaks things it can't see

check_reachability

Read-only

Verify if code functions are reachable from production entry points like APIs, CLIs, or cron jobs to identify dead code and ensure proper integration.

Instructions

Check if functions are reachable from production entry points (API endpoints, CLI commands, cron jobs, event handlers, MCP tools).

CALL THIS WHEN: • After implementing a feature — verify new code is wired into the app • Reviewing a PR — are all new functions actually reachable? • Cleaning up dead code — find functions only called by tests • Before opening a PR — run this as a pre-flight check

RETURNS: For each exported function, whether it's reachable from a production entry point, the path from entry point to function, and classification (entry_point / reachable / unreachable).

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?

Annotations declare read-only safety (readOnlyHint=true), so description adds value by detailing return structure ('path from entry point to function', 'classification') since no output schema exists, and disclosing tier constraints ('free tier receives a preview') that affect behavior. 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 visual hierarchy: purpose statement, CALL THIS WHEN bullets, RETURNS specification, and TIER notice. Each section earns its place, though the Pharaoh Pro marketing language ('free tier receives a preview') is slightly verbose compared to purely technical descriptions.

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?

Complete for a zero-parameter analysis tool. Compensates for missing output schema by describing return values (reachability boolean, path, classification). Tier limitation disclosure is essential contextual data. Sufficiently distinguishes from sibling analysis tools via specific scope.

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, triggering baseline 4 per rules. Schema is '{}' (empty object), and description appropriately avoids mentioning parameters since none exist. Schema coverage is trivially 100% with no params to document.

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?

Specific verb ('Check') + resource ('functions') + precise scope ('from production entry points'). Explicitly lists entry point types (API endpoints, CLI, cron, etc.), clearly differentiating from siblings like 'get_unused_code' (which finds dead code without path analysis) and 'get_codebase_map' (general structure).

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?

Excellent 'CALL THIS WHEN:' section with four specific scenarios (post-feature implementation, PR review, dead code cleanup, pre-PR checks). Provides clear contextual triggers. Lacks explicit 'when-not' or named alternative tools to earn a 5, but the scenario specificity strongly implies appropriate usage contexts.

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