Annotation Interface McpPromptArgument
Binds a parameter of an
McpPrompt method as a published prompt
argument.
Prompt arguments must be declared as String or
Optional<String>. Requiredness is inferred from the declared type:
String is required and Optional<String> is optional. A blank
name() uses the source-level Java parameter name. Explicit names
provide a stable public contract across Java refactoring.
- Author:
- Mark Allen
-
Optional Element Summary
Optional Elements
-
Element Details
-
name
-
title
-
description
The optional human-readable argument description.- Returns:
- the description, or an empty string if none is configured
- Default:
""
-