A tool permission rule for the CLI session.
@type t() :: %AmpSdk.Types.Permission{ action: String.t(), context: String.t() | nil, matches: map() | nil, to: String.t() | nil, tool: String.t() }
@spec new(String.t(), String.t(), keyword()) :: {:ok, t()} | {:error, AmpSdk.Error.t()}
@spec new!(String.t(), String.t(), keyword()) :: t()