langchain.js
    Preparing search index...

    Interface McpToolFilter

    Filter object to specify which tools are allowed.

    interface McpToolFilter {
        readOnly?: boolean;
        toolNames?: string[];
    }
    Index

    Properties

    readOnly?: boolean

    Indicates whether or not a tool modifies data or is read-only. If an MCP server is annotated with readOnlyHint, it will match this filter.

    toolNames?: string[]

    List of allowed tool names.