brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: claude --tools restricts which built-in tools Claude can use

Claude
~/tips/tip-claude-tools-restrict-builtin

claude --tools "Read,Grep"

Limits Claude Code to the built-in tools you list, such as read-only ones.

Permission rules decide what Claude may do without asking. For a session where I want some tools gone altogether, there is a stricter option.

--tools restricts the built-in tools Claude can use. Give it a comma-separated list, "" to disable all of them, or "default" for the default set.

claude --tools "Read,Grep"

A session like that can look through a codebase but cannot edit files or run shell commands. That suits questions about code you have just downloaded. It differs from --allowedTools, which lists tools that run without a permission prompt, and the reference points to --tools for restricting which tools are available.

The flag does not affect MCP tools. To deny those too, the reference suggests --disallowedTools "mcp__*":

claude --tools "Read,Grep" --disallowedTools "mcp__*"

The reference says a bare tool name in --disallowedTools removes the matching tools from Claude’s context, and that "*" removes every tool. On macOS, Linux and WSL, the default set leaves out Glob and Grep, which is why I name Grep explicitly above.

One tool stays: a list that omits EndConversation does not remove it, and "" removes it only when no MCP tools remain. With fewer tools Claude also does less, so this is for looking around and not for working.

Further reading: Claude Code CLI reference

More Claude tips /recap /focus /skill-doctor /autocompact 500k claude purge ~/work/my-repo --dry-run All Claude tips (83) All topics

Link