Skip to content

docs(mcp-integration): clarify allowed-tools vs agent tools: enforcement#65916

Open
Hadeer-Elsaeed wants to merge 1 commit into
anthropics:mainfrom
Hadeer-Elsaeed:fix/plugin-mcp-docs-65770
Open

docs(mcp-integration): clarify allowed-tools vs agent tools: enforcement#65916
Hadeer-Elsaeed wants to merge 1 commit into
anthropics:mainfrom
Hadeer-Elsaeed:fix/plugin-mcp-docs-65770

Conversation

@Hadeer-Elsaeed

Copy link
Copy Markdown

allowed-tools in commands is an auto-approval mechanism only — unlisted tools are still callable (user is prompted, or silent under bypassPermissions). It is not a capability boundary.

tools: in subagent frontmatter is a hard restriction — unlisted tools are genuinely unavailable even under bypassPermissions.

Confusing the two is a security footgun documented in issue #65770. This commit adds a dedicated comparison section to tool-usage.md, updates the agent configuration example to show tools: usage, and adds a warning callout in SKILL.md at the point where allowed-tools is introduced.

`allowed-tools` in commands is an auto-approval mechanism only — unlisted
tools are still callable (user is prompted, or silent under bypassPermissions).
It is not a capability boundary.

`tools:` in subagent frontmatter is a hard restriction — unlisted tools are
genuinely unavailable even under bypassPermissions.

Confusing the two is a security footgun documented in issue anthropics#65770. This
commit adds a dedicated comparison section to tool-usage.md, updates the
agent configuration example to show `tools:` usage, and adds a warning
callout in SKILL.md at the point where `allowed-tools` is introduced.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@stevei101 stevei101 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by Antigravity AI pair programmer after verifying CI checks pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants