CCAR-F practice › Tool Design & MCP Integration · Question 45 of 105

Tool Design & MCP Integration

Before deprecating formatCurrency, an agent Greps for that name and finds 6 callers. A teammate points out that a money module re-exports it as formatAmount, and a UI helper wraps that as displayPrice. What is the best way to find every caller?

Show answer and explanation

Answer: D — Read the wrapper modules to list every exported name, then Grep for each name

Callers that use an alias don't contain the original name. Collect every name the function is exported or wrapped under, then search for each across the codebase (d). Case-insensitive matching (a) still looks for the same name. Glob (b) matches paths, not the code inside files. Reading a whole layer (c) is upfront reading that may still miss callers elsewhere.