Package dev.tachyonmcp.api.server.domain
Interface ToolAnnotations
@Immutable
public interface ToolAnnotations
Hints about tool behaviour that clients may use for safety or UX decisions.
All fields are optional — when null the client should
make no assumptions about the corresponding property. readOnlyHint marks
tools that do not modify state, destructiveHint warns about irreversible
changes, idempotentHint indicates safe retries, and openWorldHint
signals that the tool may reach outside the MCP ecosystem.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolAnnotations.Builderbuilder()@Nullable Boolean@Nullable Booleanstatic ToolAnnotationsof(@Nullable String title, @Nullable Boolean readOnlyHint, @Nullable Boolean destructiveHint, @Nullable Boolean idempotentHint, @Nullable Boolean openWorldHint) @Nullable Boolean@Nullable Boolean@Nullable Stringtitle()