# mcp.AdvertisedToolsFor

- **Module:** mcp
- **Package:** github.com/libtmux/libtmux-go/mcp
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/mcp/tool_catalog.go#L36
- **Page:** https://libtmux.org/en/go/latest/mcp/reference/mcp-advertisedtoolsfor/

```
mcp.AdvertisedToolsFor(ctx: context.Context, target: tmux.Server, defaultMinimal: bool) -> ([]*sdk.Tool, error)
```

AdvertisedToolsFor returns the tools a server started now against target would advertise. defaultMinimal selects [RunDefaultMinimal]'s rule, which grants teardown tools only when that server creates the tmux server, so only when none is answering yet; [Run] never grants them by default. It asks whether a tmux server is answering and starts nothing.
