Table of Contents

TTMSMCPServer.OnListTools Event

Occurs while a tools/list request is answered, so the reported tool collection can be adjusted for the calling client.

API unit family: TMS.MCP.Server Declaring type: TTMSMCPServer Inherited from: TTMSMCPCustomServer

Syntax

OnListTools: TTMSMCPToolListEvent;

Remarks

The handler runs before the list is serialized, so an entry added, removed or changed here is reflected in the answer the client receives.

Parameters

Name Description
Sender Server that is answering the request.
ToolList Live tool collection that will be serialized. Changes made to it take effect immediately and persist beyond the request.