List Tools Protocol Result (Protocol/ListToolsResult.cs)

csharp-sdk · src/ModelContextProtocol.Core/Protocol/ListToolsResult.cs · csharp · Apache-2.0
ai, lang:csharp, tag:protocol

A data structure representing a server's response to a tool discovery request. Use this to implement Model Context Protocol (MCP) servers in C#.

// Source: https://github.com/modelcontextprotocol/csharp-sdk | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
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
/

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key