Skip to content

MCPToolFilterCallable

type MCPToolFilterCallable<TContext> = (context, tool) => Promise<boolean>;

A function that determines whether a tool should be available.

Type Parameter Default type

TContext

UnknownContext

Parameter Type

context

MCPToolFilterContext<TContext>

tool

MCPTool

Promise<boolean>