ToolAnnotations

Optional properties describing a tool's behavior, per the MCP spec's ToolAnnotations. All hints are advisory and optional; a hint that is left null is omitted from the serialized form (and clients SHOULD treat its absence as "unspecified" rather than a particular default).

Members

Functions

empty
bool empty()

True if no hint is set (serializes to an empty object).

Variables

destructiveHint
Nullable!bool destructiveHint;

if true, the tool may perform destructive updates

idempotentHint
Nullable!bool idempotentHint;

if true, repeated calls with the same args have no additional effect

openWorldHint
Nullable!bool openWorldHint;

if true, the tool interacts with an "open world" of external entities

readOnlyHint
Nullable!bool readOnlyHint;

if true, the tool does not modify its environment

title
Nullable!string title;

human-readable title for display