- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a prompt that the server offers.
public sealed class Prompt : IBaseMetadata
- Inheritance
-
Prompt
- Implements
- Inherited Members
Properties
Arguments
Gets or sets a list of arguments that this prompt accepts for templating and customization.
[JsonPropertyName("arguments")]
public IList<PromptArgument>? Arguments { get; set; }
Property Value
Description
Gets or sets an optional description of what this prompt provides.
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
Icons
Gets or sets an optional list of icons for this prompt.
[JsonPropertyName("icons")]
public IList<Icon>? Icons { get; set; }
Property Value
Meta
Gets or sets metadata reserved by MCP for protocol-level metadata.
[JsonPropertyName("_meta")]
public JsonObject? Meta { get; set; }
Property Value
Name
Gets or sets the unique identifier for this item.
[JsonPropertyName("name")]
public required string Name { get; set; }
Property Value
Title
Gets or sets a title.
[JsonPropertyName("title")]
public string? Title { get; set; }