Skip to main content

Definition

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

Syntax

Summary

Generates CRUD (Create, Read, Update, Delete) MCP tools from OData entity types.

Remarks

This generator creates MCP tools that allow AI models to perform basic data operations on OData entities. It generates separate tools for each CRUD operation, with proper validation, documentation, and parameter handling.

Constructors

.ctor

Initializes a new instance of the CrudToolGenerator class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GenerateAllCrudToolsAsync

Generates all CRUD tools for the specified entity set.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.OData.Mcp.Core.Legacy.McpTool>> A collection of generated MCP tools for CRUD operations.

GenerateCreateToolAsync

Generates a CREATE tool for the specified entity type.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<Microsoft.OData.Mcp.Core.Legacy.McpTool> A CREATE MCP tool for the entity type.

GenerateDeleteToolAsync

Generates a DELETE tool for the specified entity type.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<Microsoft.OData.Mcp.Core.Legacy.McpTool> A DELETE MCP tool for the entity type.

GenerateReadToolAsync

Generates a READ tool for the specified entity type.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<Microsoft.OData.Mcp.Core.Legacy.McpTool> A READ MCP tool for the entity type.

GenerateUpdateToolAsync

Generates an UPDATE tool for the specified entity type.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<Microsoft.OData.Mcp.Core.Legacy.McpTool> An UPDATE MCP tool for the entity type.

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?