Table of Contents

Class Annotations

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents annotations that can be attached to content, resources, and resource templates.

public class Annotations
Inheritance
Annotations
Inherited Members

Remarks

Annotations enable filtering and prioritization of content for different audiences. See the schema for details.

Properties

Audience

Gets or sets the intended audience for this content as an array of Role values.

[JsonPropertyName("audience")]
public Role[]? Audience { get; init; }

Property Value

Role[]

Priority

Gets or sets a value indicating how important this data is for operating the server.

[JsonPropertyName("priority")]
public float? Priority { get; init; }

Property Value

float?

Remarks

The value is a floating-point number between 0 and 1, where 0 represents the lowest priority 1 represents highest priority.