# --tools Flag

> It sets which built-in tools Claude has in a session.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --tools, --tools ""

## Think of it like

It is like you pack only a hammer and a saw. The other tools stay home.

## Definition

--tools sets which built-in tools Claude has in this session. Name them, such as "Bash,Edit,Read", and the rest are gone. An empty "" turns all of them off, and "default" gives the normal set. It does not touch MCP tools. To take those away too, add --disallowedTools "mcp__*".

## Example

Lucy wants a review that cannot change any file. She starts with --tools "Read,Grep,Glob", so Claude has no Edit or Bash to use.

## Example code

```bash
claude --tools "Read,Grep,Glob"
```

A session that can only read and search.

## Why it matters

A tool that is not there cannot be misused, however the prompt is worded.

## Common mistake

Thinking it limits MCP tools too. It only covers built-in tools. Use --disallowedTools "mcp__*" for those.

## Three principles

- **Names the set.** The rest are gone.
- **"" or default.** None or normal.
- **Built-in only.** Not MCP tools.

## Related terms

- [Claude Code Built-in Tool](https://learn.benibix.com/term/ai/claude-code-built-in-tool)
- [--allowedTools Flag](https://learn.benibix.com/term/ai/allowed-tools-flag)
- [--disallowedTools Flag](https://learn.benibix.com/term/ai/disallowed-tools-flag)

## Told apart from

- [--tools vs --allowedTools](https://learn.benibix.com/compare/tools-flag-vs-allowed-tools-flag): People think --allowedTools limits Claude to the tools it lists. It does not. --allowedTools only says which tools may run without asking you first. Every other tool is still there and can ask. --tools is the one that decides which built-in tools exist at all, and anything it leaves out is gone. To lock a session down, use --tools. To stop it asking about safe tools, use --allowedTools.

## Taught in

- [Tool and Settings Flags](https://learn.benibix.com/learn/ai-claude-code-commands/tool-and-settings-flags): Claude Code Commands, 15/17

![--tools sets which tools exist, --allowedTools which skip asking, --disallowedTools which go.](https://learn.benibix.com/diagrams/flag-tools.svg)

---

Source: https://learn.benibix.com/term/ai/tools-flag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
