Property Tools
Tools
Gets the cached tool list returned by tools/list
.
If not yet fetched, this property synchronously fetches the list (blocking the current thread).
Prefer using GetToolsAsync(CancellationToken) for asynchronous code paths.
public IReadOnlyCollection<McpTool> Tools { get; }
Property Value
Remarks
The first access may perform network I/O via tools/list
, and subsequent accesses return the cached list.
Use RefreshToolsAsync(CancellationToken) to force a refresh.