Table of Contents

Class ElicitRequestParams.LegacyTitledEnumSchema

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents a legacy schema for an enum type with enumNames.

[Obsolete("The EnumSchema and LegacyTitledEnumSchema APIs are deprecated as of specification version 2025-11-25 and will be removed in a future major version. See SEP-1330 for more information.", DiagnosticId = "MCP9001", UrlFormat = "https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1330")]
public class ElicitRequestParams.LegacyTitledEnumSchema : ElicitRequestParams.PrimitiveSchemaDefinition
Inheritance
ElicitRequestParams.LegacyTitledEnumSchema
Derived
Inherited Members

Remarks

This schema is deprecated in favor of ElicitRequestParams.TitledSingleSelectEnumSchema.

Properties

Default

Gets or sets the default value for the enum.

[JsonPropertyName("default")]
public string? Default { get; set; }

Property Value

string

Enum

Gets or sets the list of allowed string values for the enum.

[JsonPropertyName("enum")]
public IList<string> Enum { get; set; }

Property Value

IList<string>

EnumNames

Gets or sets optional display names corresponding to the enum values.

[JsonPropertyName("enumNames")]
public IList<string>? EnumNames { get; set; }

Property Value

IList<string>

Type

Gets or sets the type of the schema.

[JsonPropertyName("type")]
public override string Type { get; set; }

Property Value

string