TsgcWSAPIServer_MCPMethods › SendNotificationToolsListChanged

SendNotificationToolsListChanged Method

Broadcasts notifications/tools/list_changed so clients refresh their tool catalogue.

Syntax

procedure SendNotificationToolsListChanged;

Remarks

Pushes a notifications/tools/list_changed message to every session that has an open streaming connection, so the client re-issues tools/list and refreshes its view of the registered tools. Call it after mutating the Tools catalogue at runtime (for example following Tools.AddTool, Tools.Delete or a configuration reload). The notification is only emitted when TransportOptions.HttpStreamable.Enabled is True; pure short-lived HTTP clients will learn of the change on their next poll.

Example

MCPServer.Tools.AddTool('ops.restart', 'Restart a deployment');
MCPServer.SendNotificationToolsListChanged;

Back to Methods