Skip to main content

Why Filter Tools?

Every active MCP tool consumes context in your agent’s conversation window. Loading all 22 tools when your agent only needs catalog search wastes tokens and can confuse the model with irrelevant options. Tool filtering lets you load only the tools relevant to your use case — reducing context size and improving focus.

Environment Variables

ALANA_MCP_GROUPS

Load an entire category of tools by group name:
Multiple groups are comma-separated. Available groups:

ALANA_MCP_TOOLS

Load specific tools by exact name:
If both ALANA_MCP_GROUPS and ALANA_MCP_TOOLS are set, the union of both sets is loaded.

Configuration Examples

Loads 4 tools: search_products, get_product, list_catalogs, get_catalog_stats.

Content optimization agent

Loads 11 tools covering discovery, optimization, and content generation.

Analytics-only agent

Loads 3 tools — minimal context footprint for reporting workflows.

Single-tool agent

Loads exactly 1 tool — maximum focus for a search-specific integration.

Applying to MCP Client Config

Claude Desktop

Environment variable in server config

Context Window Impact

Filtering to the tools you need can save 3,000+ tokens per conversation — significant for long agent sessions.
Last modified on March 18, 2026