Skip to main content

Definition

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

Syntax

Summary

Dynamic OData MCP tools that generate methods based on discovered OData metadata.

Remarks

This class provides dynamically generated MCP tools based on the structure of OData services. It discovers entity sets, operations, and schemas to create contextual tools for AI models.

Constructors

.ctor

Initializes a new instance of the DynamicODataMcpTools class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Methods

DescribeEntityType

Gets detailed schema information for a specific entity type.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<string> Detailed schema information including properties, keys, and navigation properties.

DiscoverEntitySets

Discovers and lists all available entity sets in the OData service.

Syntax

Returns

Type: System.Threading.Tasks.Task<string> A JSON array of entity set information including names and types.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GenerateQueryExamples

Generates sample OData query URLs for a specific entity set.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<string> A collection of sample OData query URLs with explanations.

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

ValidateQuery

Validates an OData query URL against the service metadata.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<string> Validation results including any errors or warnings.