QuestionQ134

Tool Design & MCP Integration

You are creating developer-productivity tools with the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive work. It uses the built-in tools (Read, Write, Bash, Grep, Glob) and integrates with Model Context Protocol (MCP) servers.

You are building a security-scanning workflow.

When engineers must find every occurrence of a dangerous function such as eval() throughout a large codebase, which tool should the agent use to search file contents?

Explanation

Grep searches the contents of files for a specified pattern across the codebase, making it the appropriate built-in tool for locating every use of eval(. Glob matches file paths, while Read is for inspecting selected files.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!