> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scmcphub.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Intelligent Tool Selection

> Intelligent Tool Selection (Experimental)

## Intelligent Tool Selection (Experimental)

SCMCP implements an intelligent tool selection system to optimize performance and reduce token usage.

### How it Works

The intelligent tool selection system operates in two phases:

1. **Search\_tool**: First identifies the most relevant tools for your analysis
2. **run\_tool**: Then runs only the selected tools, reducing token consumption

### Usage

1. Ensure you have the latest version of scmcp-shared installed:

```bash theme={null}
pip install --upgrade scmcp-shared
```

2. Start the server with intelligent tool selection enabled:

```bash theme={null}
export API_KEY=sk-***
export BASE_URL="https://api.openai.com/v1"
export MODEL="gpt-4o"
scmcp run --transport shttp --port 8000 --run-mode tool --tool-mode auto
```

3. Configure your MCP client to connect to the server:

```json theme={null}
{
  "mcpServers": {
    "scmcp": {
      "url": "http://localhost:8000/mcp"
    }
  }
}
```
