Table of Contents

Class Tool

Namespace
ModelContextProtocol.Protocol.Types
Assembly
ModelContextProtocol.dll

Represents a tool that the server is capable of calling. Part of the ListToolsResponse. See the schema for details

public class Tool
Inheritance
Tool
Inherited Members

Properties

Annotations

Optional additional tool information.

[JsonPropertyName("annotations")]
public ToolAnnotations? Annotations { get; set; }

Property Value

ToolAnnotations

Description

A human-readable description of the tool.

[JsonPropertyName("description")]
public string? Description { get; set; }

Property Value

string

InputSchema

A JSON Schema object defining the expected parameters for the tool.

[JsonPropertyName("inputSchema")]
public JsonElement InputSchema { get; set; }

Property Value

JsonElement

Remarks

Needs to a valid JSON schema object that additionally is of type object.

Name

The name of the tool.

[JsonPropertyName("name")]
public string Name { get; set; }

Property Value

string