MCP.Protocol.Types.ToolAnnotations (MCP Elixir SDK v1.1.0)

Copy Markdown View Source

Additional properties describing a tool's behavior.

All properties are hints and not guaranteed. Clients SHOULD NOT rely on these for security decisions unless the server is trusted.

Summary

Types

t()

@type t() :: %MCP.Protocol.Types.ToolAnnotations{
  destructive_hint: boolean() | nil,
  idempotent_hint: boolean() | nil,
  open_world_hint: boolean() | nil,
  read_only_hint: boolean() | nil,
  title: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()