Multi-Agent Research System
Your multi-agent research system uses Claude Code's agent SDK to orchestrate three subagents: a web-search agent, a database agent, and a Slack-notification agent. During a security review, your team finds that the database agent — which should only run read-only queries — is also capable of invoking the mcp__db__insert and mcp__db__delete tools. Examining the agent configuration, you find the orchestration layer was originally set up with permissionMode: "bypassPermissions" to avoid approval prompts during development, and that setting was never changed for production. What is the most targeted fix to restrict each subagent to only the MCP tools it requires?