McpServerTool interface

A tool exposed by an MCP server.

Properties

maxOutputTokens

The maximum number of tokens retained from the tool output.

name

The name of the MCP tool.

outputParsing

Configuration for parsing the tool output.

resultsProcessing

Controls how parsed tool results are integrated into the result set.

Property Details

maxOutputTokens

The maximum number of tokens retained from the tool output.

maxOutputTokens?: number

Property Value

number

name

The name of the MCP tool.

name?: string

Property Value

string

outputParsing

Configuration for parsing the tool output.

outputParsing?: McpServerOutputParsingUnion

Property Value

resultsProcessing

Controls how parsed tool results are integrated into the result set.

resultsProcessing?: string

Property Value

string