Interface McpToolArguments<A>

Type Parameters:
A - bound argument type

@ThreadSafe public interface McpToolArguments<A>
Shallowly immutable arguments for one MCP tool invocation.

The arguments carrier is safe for concurrent access. The converted argument value is application-defined and retains its own mutability and thread-safety contract; this type's ThreadSafe annotation does not make that value thread-safe.

Author:
Mark Allen
  • Method Details

    • getConvertedArguments

      Returns arguments converted to the registration's declared Java type. The returned application value retains its own mutability and thread-safety contract.
      Returns:
      converted arguments
    • getRawArguments

      Returns the validated immutable JSON object received on the wire.
      Returns:
      raw arguments