IntelligenceX
Class

McpToolInfo

Namespace IntelligenceX.OpenAI.AppServer.Models
Assembly IntelligenceX
Modifiers sealed

Describes an MCP tool.

Inheritance

  • Object
  • McpToolInfo

Constructors

public McpToolInfo(String name, String title, String description, JsonObject inputSchema, JsonObject outputSchema, JsonObject annotations, JsonObject meta, JsonObject raw, JsonObject additional) #

Initializes a new MCP tool info.

Parameters

name System.String
title System.String
description System.String
inputSchema IntelligenceX.Json.JsonObject
outputSchema IntelligenceX.Json.JsonObject
annotations IntelligenceX.Json.JsonObject
meta IntelligenceX.Json.JsonObject
raw IntelligenceX.Json.JsonObject
additional IntelligenceX.Json.JsonObject

Methods

public static McpToolInfo FromJson(JsonObject obj, String fallbackName = null) #
Returns: McpToolInfo

Parses tool info from JSON.

Parameters

obj IntelligenceX.Json.JsonObject
Source JSON object.
fallbackName System.String = null
Fallback tool name.

Returns

The parsed tool info.

Properties

public String Description { get; } #

Gets the tool description.

public JsonObject InputSchema { get; } #

Gets the input schema.

public JsonObject OutputSchema { get; } #

Gets the output schema.

public JsonObject Annotations { get; } #

Gets tool annotations.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject Additional { get; } #

Gets unrecognized fields from the payload.