@@ -37,7 +37,7 @@ public sealed class McpClientTool : AIFunction
3737 private readonly string _name ;
3838 private readonly string _description ;
3939 private readonly IProgress < ProgressNotificationValue > ? _progress ;
40- private readonly JsonObject ? _metadata ;
40+ private readonly JsonObject ? _meta ;
4141
4242 /// <summary>
4343 /// Initializes a new instance of the <see cref="McpClientTool"/> class.
@@ -76,7 +76,7 @@ public McpClientTool(
7676 _name = tool . Name ;
7777 _description = tool . Description ?? string . Empty ;
7878 _progress = null ;
79- _metadata = null ;
79+ _meta = null ;
8080 }
8181
8282 internal McpClientTool (
@@ -94,7 +94,7 @@ internal McpClientTool(
9494 _name = name ?? tool . Name ;
9595 _description = description ?? tool . Description ?? string . Empty ;
9696 _progress = progress ;
97- _metadata = metadata ;
97+ _meta = metadata ;
9898 }
9999
100100 /// <summary>
@@ -199,7 +199,7 @@ public ValueTask<CallToolResult> CallAsync(
199199 IProgress < ProgressNotificationValue > ? progress = null ,
200200 JsonSerializerOptions ? serializerOptions = null ,
201201 CancellationToken cancellationToken = default ) =>
202- _client . CallToolAsync ( ProtocolTool . Name , arguments , progress , serializerOptions , _metadata , cancellationToken ) ;
202+ _client . CallToolAsync ( ProtocolTool . Name , arguments , progress , serializerOptions , _meta , cancellationToken ) ;
203203
204204 /// <summary>
205205 /// Creates a new instance of the tool but modified to return the specified name from its <see cref="Name"/> property.
@@ -226,7 +226,7 @@ public ValueTask<CallToolResult> CallAsync(
226226 /// </para>
227227 /// </remarks>
228228 public McpClientTool WithName ( string name ) =>
229- new ( _client , ProtocolTool , JsonSerializerOptions , name , _description , _progress , _metadata ) ;
229+ new ( _client , ProtocolTool , JsonSerializerOptions , name , _description , _progress , _meta ) ;
230230
231231 /// <summary>
232232 /// Creates a new instance of the tool but modified to return the specified description from its <see cref="Description"/> property.
@@ -250,7 +250,7 @@ public McpClientTool WithName(string name) =>
250250 /// </remarks>
251251 /// <returns>A new instance of <see cref="McpClientTool"/> with the provided description.</returns>
252252 public McpClientTool WithDescription ( string description ) =>
253- new ( _client , ProtocolTool , JsonSerializerOptions , _name , description , _progress , _metadata ) ;
253+ new ( _client , ProtocolTool , JsonSerializerOptions , _name , description , _progress , _meta ) ;
254254
255255 /// <summary>
256256 /// Creates a new instance of the tool but modified to report progress via the specified <see cref="IProgress{T}"/>.
@@ -273,7 +273,7 @@ public McpClientTool WithProgress(IProgress<ProgressNotificationValue> progress)
273273 {
274274 Throw . IfNull ( progress ) ;
275275
276- return new McpClientTool ( _client , ProtocolTool , JsonSerializerOptions , _name , _description , progress , _metadata ) ;
276+ return new McpClientTool ( _client , ProtocolTool , JsonSerializerOptions , _name , _description , progress , _meta ) ;
277277 }
278278
279279 /// <summary>
0 commit comments