Table of Contents

Class CompleteResult

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the server's response to a CompletionComplete request, containing suggested values for a given argument.

public class CompleteResult
Inheritance
CompleteResult
Inherited Members

Remarks

CompleteResult is returned by the server in response to a CompletionComplete request from the client. It provides suggested completions or valid values for a specific argument in a tool or resource reference.

The result contains a Completion object with suggested values, pagination information, and the total number of available completions. This is similar to auto-completion functionality in code editors.

Clients typically use this to implement auto-suggestion features when users are inputting parameters for tool calls or resource references.

See the schema for details.

Properties

Completion

Gets or sets the completion object containing the suggested values and pagination information.

[JsonPropertyName("completion")]
public Completion Completion { get; set; }

Property Value

Completion

Remarks

If no completions are available for the given input, the Values collection will be empty.