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.