Table of Contents

Class ElicitRequestParams.NumberSchema

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents a schema for a number or integer type.

public sealed class ElicitRequestParams.NumberSchema : ElicitRequestParams.PrimitiveSchemaDefinition
Inheritance
ElicitRequestParams.NumberSchema
Inherited Members

Properties

Description

Gets or sets a description for the number input.

[JsonPropertyName("description")]
public string? Description { get; set; }

Property Value

string

Maximum

Gets or sets the maximum allowed value.

[JsonPropertyName("maximum")]
public double? Maximum { get; set; }

Property Value

double?

Minimum

Gets or sets the minimum allowed value.

[JsonPropertyName("minimum")]
public double? Minimum { get; set; }

Property Value

double?

Title

Gets or sets a title for the number input.

[JsonPropertyName("title")]
public string? Title { get; set; }

Property Value

string

Type

Gets the type of the schema.

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

Property Value

string

Remarks

This should be "number" or "integer".