# MCP tool profiles

Choose how many Repowise MCP tools each client lists, with the core, lean, standard and all profiles, mcp.tools, deltas and mcp.always_load.

A profile decides which Repowise MCP tools a client lists. The server reads
the client's name from the MCP handshake and lists the profile that fits how
that client loads tool schemas. One setting, `mcp.tools`, changes it for
every client.

## Who gets which by default

| Client | Default profile | Tools listed | Why |
|---|---|---|---|
| Claude Code | `standard` | The ten default tools: `get_overview`, `get_answer`, `get_context`, `get_symbol`, `search_codebase`, `get_risk`, `get_why`, `get_health`, `get_dead_code`, `get_change_risk` | It loads a schema only when the model asks for the tool, so a longer list costs only the tool names each turn |
| Every other client, and one that sends no name | `core` | Five: `get_answer`, `get_context`, `get_symbol`, `search_codebase`, `get_why` | It sends every listed schema with every request, so five tools cost about half the tokens of ten |

In a workspace, every profile also lists `list_repos`, so Claude Code lists
eleven. A tool a client's default leaves out still answers when the
agent calls it by name.

## The profiles

| Profile | Lists |
|---|---|
| `core` | `get_answer`, `get_context`, `get_symbol`, `search_codebase`, `get_why` |
| `lean` | `core` plus `get_risk` (six tools) |
| `standard` | The ten default tools |
| `all` | Every tool usable in this mode, including the seven opt-in tools |

The seven opt-in tools are `get_dependency_path`, `get_execution_flows`,
`generate_refactoring_code`, `set_finding_status`, and the workspace-only
`get_blast_radius`, `get_architecture` and `get_conformance`, which need a
workspace indexed with `repowise update --workspace`. No setting turns on a
tool that cannot work in the current mode.

## List all ten on every client

```bash
repowise config set mcp.tools standard
```

This writes `mcp.tools` to `.repowise/config.yaml`. Restart the MCP server or
the agent: the list is resolved when the server starts.

To list every tool, opt-in ones included:

```bash
repowise config set mcp.tools all
```

For one launch only, without changing the setting:

```bash
repowise mcp --all
repowise mcp --tools standard
```

`repowise agents add --target=<id> --tools <value>` writes the same setting
while wiring an agent.

## Adjust a profile

`mcp.tools` and `--tools` take the same values:

| Value | Lists |
|---|---|
| unset | Each client's default: `standard` on Claude Code, `core` elsewhere |
| A profile | That profile, on every client |
| A profile, then `+name` or `-name` | That profile, adjusted |
| `+name` or `-name` alone | Each client's default, adjusted |
| Plain tool names | Exactly those tools |

```bash
repowise config set mcp.tools core,+get_health        # core plus one
repowise config set mcp.tools +get_execution_flows    # each client's default plus one
repowise config set mcp.tools standard,-get_dead_code # ten minus one
repowise config get mcp.tools                         # the value and where it came from
repowise config reset mcp.tools                       # back to each client's default
```

`--tools` in one client's server entry, for example
`repowise mcp --tools standard`, pins that client alone and wins over
`mcp.tools`.

## Load the read tools from the first turn

Claude Code defers every tool schema until the model asks for it, so the
first Repowise call in a session costs a tool-search turn. With
`mcp.always_load` on, Claude Code loads four read tools (`get_answer`,
`get_context`, `search_codebase`, `get_symbol`) from the first turn, for
about 2.5k more tokens per turn. `get_why` and the rest stay deferred.

```bash
repowise config set mcp.always_load true    # then restart the agent
repowise config reset mcp.always_load       # back to off
```

It is off by default and applies only to clients that defer schemas.

## Check what a client lists

`repowise config explain mcp.tools` prints what the setting accepts and its
current value. The generated `AGENTS.md` block and the server instructions
name only the tools each client lists.

## Next
- [Tools by question](https://docs.repowise.dev/agents/tools-by-question) to decide which tools to add.
- [MCP overview](https://docs.repowise.dev/mcp/overview) for what every tool returns.
- [Configuration](https://docs.repowise.dev/installation/configuration) for the rest of `.repowise/config.yaml`.
