# FoundryToolboxMcpApprovalFilter

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

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.
