# FoundryToolboxMcpApprovalFilter

- Module: [Aspire.Hosting.Foundry](/reference/api/go/aspire.hosting.foundry.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Selects MCP tools by name or read-only status for an approval policy.

## Definition

```go
type FoundryToolboxMcpApprovalFilter struct {
    ToolNames []string `json:"ToolNames"`
    ReadOnly  *bool    `json:"ReadOnly"`
}
```

## Fields

- `ToolNames`: `[]string` -- Gets or sets the names of the MCP tools selected by this filter.
- `ReadOnly`: `*bool` `optional` -- Gets or sets whether this filter selects read-only or non-read-only MCP tools.
