Filter MCP tools to control which capabilities agents have access to, improving security and reducing complexity.Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start
How It Works
Precedence Rule: If bothallowed_tools and disabled_tools are specified, allowed_tools wins (include takes precedence over exclude).
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
allowed_tools | List[str] | None | Whitelist β only these tools exposed to the agent (None = all tools) |
disabled_tools | List[str] | None | Blacklist β these tools filtered out (None = no exclusions) |
Common Patterns
Safety-First Agent
Restrict to read-only operations:Remove Dangerous Operations
Block specific risky tools:Multi-Server Filtering
Apply different filters to different servers:When to Use Which Filter
Useallowed_tools when:
- Security is critical
- You know exactly which tools you need
- Working with untrusted or powerful servers
disabled_tools when:
- You want most tools but need to block a few
- Rapid prototyping with tool discovery
- Working with generally safe servers
Best Practices
Start with Whitelist for Security
Start with Whitelist for Security
For security-sensitive applications, use
allowed_tools to explicitly control capabilities. Itβs safer to add tools as needed than to discover dangerous ones later.Document Your Filtering Decisions
Document Your Filtering Decisions
When using filters, comment why specific tools are allowed or blocked. This helps with maintenance and team understanding.
Test Tool Availability
Test Tool Availability
Before deploying, verify that your filtered tool set provides the capabilities your agent needs. Use
praisonai mcp test to inspect available tools.Consider Tool Dependencies
Consider Tool Dependencies
Some tools might depend on others. When whitelisting, ensure you include all necessary tools for complete workflows.
Related
Load MCP Tools
Wire configured MCP servers into agents with one line
MCP Client Protocol
Protocol interface for MCP client implementations

