Package-level declarations

Types

Link copied to clipboard
class ToolArgsParser(args: JsonObject?)

Parser for MCP tool arguments with soft assertion-style validation. Collects all errors and reports them together instead of failing on the first error.

Link copied to clipboard

Exception thrown when one or more tool arguments are invalid. Collects all validation errors and reports them together.

Functions

Link copied to clipboard
inline fun parseToolArgs(args: JsonObject?, block: ToolArgsParser.() -> Unit): ToolArgsParser

Creates a ToolArgsParser and runs the validation block. Returns the error message if validation failed, or null if successful.