Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Catalog Inheritance: System.Object

Syntax

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; the default is never replaced.

Methods

Compose

Composes the server instructions from an optional developer preface and ODataMcpInstructions.Default.

Syntax

Parameters

Returns

Type: string ODataMcpInstructions.Default alone when preface is null or whitespace; otherwise the trimmed preface, one blank line, then ODataMcpInstructions.Default.

Examples