Table of Contents

Class ListResourceTemplatesResult

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents a server's response to a ResourcesTemplatesList request from the client, containing available resource templates.

public class ListResourceTemplatesResult : PaginatedResult
Inheritance
ListResourceTemplatesResult
Inherited Members

Remarks

This result is returned when a client sends a ResourcesTemplatesList request to discover available resource templates on the server.

It inherits from PaginatedResult, allowing for paginated responses when there are many resource templates. The server can provide the NextCursor property to indicate there are more resource templates available beyond what was returned in the current response.

See the schema for details.

Properties

ResourceTemplates

Gets or sets a list of resource templates that the server offers.

[JsonPropertyName("resourceTemplates")]
public List<ResourceTemplate> ResourceTemplates { get; set; }

Property Value

List<ResourceTemplate>

Remarks

This collection contains all the resource templates returned in the current page of results. Each ResourceTemplate provides metadata about resources available on the server, including URI templates, names, descriptions, and MIME types.