# --permission-prompt-tool Flag

> It names an MCP tool that says yes or no for you.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --permission-prompt-tool

## Think of it like

It is like you pick a grown-up to say yes or no. They do it when you are not there.

## Definition

--permission-prompt-tool names an MCP tool that answers permission questions when claude -p runs. Give its full name, such as mcp__approver__check. Claude Code waits for that tool's server to connect before the first turn, up to 30 seconds by default. Then the tool says yes or no to each action that would ask.

## Example

Jack's team has an MCP server that checks each command against their rules. Their CI runs claude -p with --permission-prompt-tool pointing at it.

## Example code

```bash
claude -p "Deploy the docs" --permission-prompt-tool mcp__approver__check
```

Let an MCP tool decide each permission.

## Why it matters

Your own code can judge each action, which is more exact than a fixed allow list.

## Common mistake

Naming a tool on a server the run does not load. The server must be in the session's MCP config, or nothing answers.

## Three principles

- **An MCP tool.** Full name.
- **Waits to connect.** 30 seconds by default.
- **Yes or no.** For each action.

## Related terms

- [--permission-prompts Flag](https://learn.benibix.com/term/ai/permission-prompts-flag)
- [MCP Tool](https://learn.benibix.com/term/ai/mcp-tool)
- [Permission Rule](https://learn.benibix.com/term/ai/permission-rule)

## Taught in

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

---

Source: https://learn.benibix.com/term/ai/permission-prompt-tool-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.
