# FoundryToolboxMcpApprovalFilter Properties

- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Type: [FoundryToolboxMcpApprovalFilter](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxmcpapprovalfilter.md)
- Kind: `Properties`
- Members: `2`

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

<a id="readonly"></a>

## ReadOnly

- Name: `ReadOnly`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxOptions.cs)

Gets or sets whether this filter selects read-only or non-read-only MCP tools.

```csharp
public bool? ReadOnly { get; set; }
```

<a id="toolnames"></a>

## ToolNames

- Name: `ToolNames`
- Modifiers: `nullable` `get; set`
- Returns: `string[]?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxOptions.cs)

Gets or sets the names of the MCP tools selected by this filter.

```csharp
public string[]? ToolNames { get; set; }
```
