Class McpToolAnnotations.Builder
java.lang.Object
com.soklet.McpToolAnnotations.Builder
- Enclosing class:
McpToolAnnotations
Mutable builder for immutable
McpToolAnnotations.- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()destructiveHint(@NonNull Boolean destructiveHint) idempotentHint(@NonNull Boolean idempotentHint) openWorldHint(@NonNull Boolean openWorldHint) readOnlyHint(@NonNull Boolean readOnlyHint) Sets the human-readable title hint.
-
Method Details
-
title
Sets the human-readable title hint.- Parameters:
title- title hint- Returns:
- this builder
-
readOnlyHint
- Parameters:
readOnlyHint- whether the tool is read-only- Returns:
- this builder
- Throws:
NullPointerException- ifreadOnlyHintis null
-
destructiveHint
- Parameters:
destructiveHint- whether the tool may perform destructive updates- Returns:
- this builder
- Throws:
NullPointerException- ifdestructiveHintis null
-
idempotentHint
- Parameters:
idempotentHint- whether repeated calls have no additional effect- Returns:
- this builder
- Throws:
NullPointerException- ifidempotentHintis null
-
openWorldHint
- Parameters:
openWorldHint- whether the tool may interact with external entities- Returns:
- this builder
- Throws:
NullPointerException- ifopenWorldHintis null
-
build
- Returns:
- immutable tool annotations
-