# FoundryToolboxResource Properties

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

Represents a Microsoft Foundry Toolbox endpoint associated with a Foundry project.

<a id="apiversion"></a>

## ApiVersion

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

Gets or sets the API version used by the Toolbox MCP endpoint.

```csharp
public string ApiVersion { get; set; }
```

<a id="connectionstringexpression"></a>

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxResource.cs#L181)

Gets the connection string expression for the Toolbox MCP endpoint.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

<a id="deployedversion"></a>

## DeployedVersion

- Name: `DeployedVersion`
- Modifiers: `get`
- Returns: `StaticValueProvider<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxResource.cs#L161)

Gets the version selected by the most recent reconciliation.

```csharp
public StaticValueProvider<string> DeployedVersion { get; }
```

<a id="description"></a>

## Description

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

Gets or sets the description persisted with each Toolbox version.

```csharp
public string Description { get; set; }
```

<a id="metadata"></a>

## Metadata

- Name: `Metadata`
- Modifiers: `get; init`
- Returns: `IDictionary<string, string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxResource.cs)

Gets metadata persisted with each Toolbox version.

```csharp
public IDictionary<string, string> Metadata { get; init; }
```

## Remarks

Aspire adds reserved ownership and configuration metadata during deployment. User metadata participates in change detection and therefore creates a new version when modified.

<a id="parent"></a>

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [AzureCognitiveServicesProjectResource](/reference/api/csharp/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxResource.cs#L126)

Gets the parent Microsoft Foundry project resource.

```csharp
public AzureCognitiveServicesProjectResource Parent { get; }
```

<a id="uriexpression"></a>

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxResource.cs#L174-L176)

Gets the Toolbox MCP endpoint URI expression.

```csharp
public ReferenceExpression UriExpression { get; }
```

<a id="version"></a>

## Version

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

Gets or sets the Toolbox version used by consumers.

```csharp
public string? Version { get; set; }
```

## Remarks

When unset, consumers use the default Toolbox endpoint. Set this only to target a specific existing immutable version for testing. Reconciliation always updates the default version independently of this consumer-side pin.
