Skip to main content
Glama
Pharaoh-so

Pharaoh - Your AI breaks things it can't see

search_functions

Search existing functions across the codebase to prevent duplication before writing new code, ensuring you reuse implementations instead of recreating them.

Instructions

Check if functionality already exists BEFORE writing any new function, utility, or helper.

CALL THIS WHEN: • You're about to create a new function — search first to prevent duplicates • You need to find where a concept is implemented (e.g., 'notify', 'validate', 'parse') • You're looking for the right function to import instead of reimplementing • A task says 'add X functionality' — verify X doesn't already exist

RETURNS: Matching functions with file paths, line numbers, module, export status, async flag, complexity scores, and full signatures. Searches all functions across the entire codebase.

EXAMPLES: • "Is there already a function that sends Slack notifications?" • "What validation utilities exist?" • "Where is email formatting handled?" • "Does a retry wrapper already exist somewhere?"

WHY NOT JUST READ FILES: grep only finds exact string matches and misses re-exports, aliases, and barrel-file indirection. This searches the full resolved dependency graph — if it exists anywhere in the codebase, this finds it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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