matryoshka

fun matryoshka(name: String, description: String, filter: (<Error class: unknown class>) -> Boolean, removeOnInvoke: Boolean = true): MatryoshkaTool

Create a MatryoshkaTool from MCP clients with a filter predicate.

Parameters

name

Name of the MatryoshkaTool facade

description

Description explaining when to use this tool category

filter

Predicate that returns true to include a tool

removeOnInvoke

Whether to remove the facade after invocation (default true)