McpToolMatching interface

The tool conditions of an MCP rule. Present properties are ANDed.

Properties

callArguments

Compared with the arguments of a tools/call request.

descriptions

Compared with the description of each tool in a tools/list response. Needs methods List alone.

methods

The tool methods to match. Omitted means Call. Names and callArguments need Call alone. Titles and descriptions need List alone.

names

Compared with the tool name of a tools/call request.

responseContents

Compared with the text of each content item, result.content[].text, of a tools/call response.

titles

Compared with the title of each tool in a tools/list response. Needs methods List alone.

Property Details

callArguments

Compared with the arguments of a tools/call request.

callArguments?: McpArgumentMatching

Property Value

descriptions

Compared with the description of each tool in a tools/list response. Needs methods List alone.

descriptions?: McpStringMatching

Property Value

methods

The tool methods to match. Omitted means Call. Names and callArguments need Call alone. Titles and descriptions need List alone.

methods?: string[]

Property Value

string[]

names

Compared with the tool name of a tools/call request.

names?: McpStringMatching

Property Value

responseContents

Compared with the text of each content item, result.content[].text, of a tools/call response.

responseContents?: McpStringMatching

Property Value

titles

Compared with the title of each tool in a tools/list response. Needs methods List alone.

titles?: McpStringMatching

Property Value