Clean up and add more comments (#2)
This commit is contained in:
parent
79af38cf21
commit
9a244f5770
1 changed files with 349 additions and 653 deletions
23
src/mcpdotnet/Protocol/Types/Tool.cs
Normal file
23
src/mcpdotnet/Protocol/Types/Tool.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
namespace McpDotNet.Protocol.Types;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a tool that the server is capable of calling. Part of the ListToolsResponse.
|
||||
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/schema.json">See the schema for details</see>
|
||||
/// </summary>
|
||||
public class Tool
|
||||
{
|
||||
/// <summary>
|
||||
/// he name of the tool.
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// A human-readable description of the tool.
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A JSON Schema object defining the expected parameters for the tool.
|
||||
/// </summary>
|
||||
public JsonSchema? InputSchema { get; set; }
|
||||
}
|
||||
Loading…
Reference in a new issue