forked from modelcontextprotocol/csharp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListToolsResult.cs
More file actions
28 lines (26 loc) · 1.1 KB
/
ListToolsResult.cs
File metadata and controls
28 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Represents a server's response to a <see cref="RequestMethods.ToolsList"/> request from the client, containing available tools.
/// </summary>
/// <remarks>
/// <para>
/// This result is returned when a client sends a <see cref="RequestMethods.ToolsList"/> request to discover available tools on the server.
/// </para>
/// <para>
/// It inherits from <see cref="PaginatedResult"/>, allowing for paginated responses when there are many tools.
/// The server can provide the <see cref="PaginatedResult.NextCursor"/> property to indicate there are more
/// tools available beyond what was returned in the current response.
/// </para>
/// <para>
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
/// </para>
/// </remarks>
public class ListToolsResult : PaginatedResult
{
/// <summary>
/// The server's response to a tools/list request from the client.
/// </summary>
[JsonPropertyName("tools")]
public List<Tool> Tools { get; set; } = [];
}