MCPToolFilterCallable
type MCPToolFilterCallable<TContext> = (context, tool) => Promise<boolean>;A function that determines whether a tool should be available.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
|
|
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Section titled “Returns”Promise<boolean>