> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ODataMcpInstructions

> The MCP `initialize.instructions` text every OData MCP host advertises.

## Definition

**Assembly:** Microsoft.OData.Mcp.Core.dll

**Namespace:** Microsoft.OData.Mcp.Core.Catalog

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
Microsoft.OData.Mcp.Core.Catalog.ODataMcpInstructions
```

## Summary

The MCP `initialize.instructions` text every OData MCP host advertises.

## Remarks

The default carries only the rules a calling model cannot infer from tool schemas. Developers may prepend
service-specific guidance through [ODataMcpCatalogOptions.InstructionsPreface](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Catalog/ODataMcpCatalogOptions.md#instructionspreface); the default
is never replaced.

## Methods

### &#x20;Compose

Composes the server instructions from an optional developer preface and [ODataMcpInstructions.Default](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Catalog/ODataMcpInstructions.md#default).

#### Syntax

```csharp theme={null}
public static string Compose(string preface)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `preface` | `string?` | Service-specific guidance to place before the default text, or `null`. |

#### Returns

Type: `string`
[ODataMcpInstructions.Default](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Catalog/ODataMcpInstructions.md#default) alone when *preface* is null or whitespace; otherwise the trimmed
preface, one blank line, then [ODataMcpInstructions.Default](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Catalog/ODataMcpInstructions.md#default).

#### Examples

```csharp theme={null}
options.ServerInstructions = ODataMcpInstructions.Compose("Contoso sales data. Amounts are USD.");
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.