Class McpPromptSpec

java.lang.Object
org.apache.juneau.rest.server.mcp.McpPromptSpec

public class McpPromptSpec extends Object
Revision-neutral prompt descriptor returned from prompts/list.

Supersedes the wire-level Prompt bean.

  • Constructor Details

  • Method Details

    • getName

      public String getName()
      The prompt name, used to route prompts/get requests.
      Returns:
      The name, or null if not set.
    • setName

      public McpPromptSpec setName(String value)
      Sets the prompt name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getDescription

      The human-readable prompt description.
      Returns:
      The description, or null if not set.
    • setDescription

      Sets the prompt description.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getArguments

      The prompt's declared arguments.
      Returns:
      The arguments, or null if not set. A null value is distinct from an empty list: it means the wire property is omitted entirely.
    • setArguments

      Sets the prompt's declared arguments.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.