Share via


MCPToolFilter interface

A filter object to specify which tools are allowed.

Properties

read_only

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.

tool_names

List of allowed tool names.

Property Details

read_only

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.

read_only?: boolean

Property Value

boolean

tool_names

List of allowed tool names.

tool_names?: string[]

Property Value

string[]