@@ -126,8 +126,7 @@ public async Task Can_List_Registered_Tools()
126126 var tools = await client . ListToolsAsync ( cancellationToken : TestContext . Current . CancellationToken ) ;
127127 Assert . Equal ( 16 , tools . Count ) ;
128128
129- McpClientTool echoTool = tools . First ( t => t . Name == "Echo" ) ;
130- Assert . Equal ( "Echo" , echoTool . Name ) ;
129+ McpClientTool echoTool = tools . First ( t => t . Name == "echo" ) ;
131130 Assert . Equal ( "Echoes the input back to the client." , echoTool . Description ) ;
132131 Assert . Equal ( "object" , echoTool . JsonSchema . GetProperty ( "type" ) . GetString ( ) ) ;
133132 Assert . Equal ( JsonValueKind . Object , echoTool . JsonSchema . GetProperty ( "properties" ) . GetProperty ( "message" ) . ValueKind ) ;
@@ -165,8 +164,7 @@ public async Task Can_Create_Multiple_Servers_From_Options_And_List_Registered_T
165164 var tools = await client . ListToolsAsync ( cancellationToken : TestContext . Current . CancellationToken ) ;
166165 Assert . Equal ( 16 , tools . Count ) ;
167166
168- McpClientTool echoTool = tools . First ( t => t . Name == "Echo" ) ;
169- Assert . Equal ( "Echo" , echoTool . Name ) ;
167+ McpClientTool echoTool = tools . First ( t => t . Name == "echo" ) ;
170168 Assert . Equal ( "Echoes the input back to the client." , echoTool . Description ) ;
171169 Assert . Equal ( "object" , echoTool . JsonSchema . GetProperty ( "type" ) . GetString ( ) ) ;
172170 Assert . Equal ( JsonValueKind . Object , echoTool . JsonSchema . GetProperty ( "properties" ) . GetProperty ( "message" ) . ValueKind ) ;
@@ -231,7 +229,7 @@ public async Task Can_Call_Registered_Tool()
231229 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
232230
233231 var result = await client . CallToolAsync (
234- "Echo " ,
232+ "echo " ,
235233 new Dictionary < string , object ? > ( ) { [ "message" ] = "Peter" } ,
236234 cancellationToken : TestContext . Current . CancellationToken ) ;
237235
@@ -250,7 +248,7 @@ public async Task Can_Call_Registered_Tool_With_Array_Result()
250248 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
251249
252250 var result = await client . CallToolAsync (
253- "EchoArray " ,
251+ "echo_array " ,
254252 new Dictionary < string , object ? > ( ) { [ "message" ] = "Peter" } ,
255253 cancellationToken : TestContext . Current . CancellationToken ) ;
256254
@@ -274,7 +272,7 @@ public async Task Can_Call_Registered_Tool_With_Null_Result()
274272 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
275273
276274 var result = await client . CallToolAsync (
277- "ReturnNull " ,
275+ "return_null " ,
278276 cancellationToken : TestContext . Current . CancellationToken ) ;
279277
280278 Assert . NotNull ( result ) ;
@@ -288,7 +286,7 @@ public async Task Can_Call_Registered_Tool_With_Json_Result()
288286 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
289287
290288 var result = await client . CallToolAsync (
291- "ReturnJson " ,
289+ "return_json " ,
292290 cancellationToken : TestContext . Current . CancellationToken ) ;
293291
294292 Assert . NotNull ( result ) ;
@@ -305,7 +303,7 @@ public async Task Can_Call_Registered_Tool_With_Int_Result()
305303 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
306304
307305 var result = await client . CallToolAsync (
308- "ReturnInteger " ,
306+ "return_integer " ,
309307 cancellationToken : TestContext . Current . CancellationToken ) ;
310308
311309 Assert . NotNull ( result . Content ) ;
@@ -320,7 +318,7 @@ public async Task Can_Call_Registered_Tool_And_Pass_ComplexType()
320318 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
321319
322320 var result = await client . CallToolAsync (
323- "EchoComplex " ,
321+ "echo_complex " ,
324322 new Dictionary < string , object ? > ( ) { [ "complex" ] = JsonDocument . Parse ( """{"Name": "Peter", "Age": 25}""" ) . RootElement } ,
325323 cancellationToken : TestContext . Current . CancellationToken ) ;
326324
@@ -340,7 +338,7 @@ public async Task Can_Call_Registered_Tool_With_Instance_Method()
340338 for ( int i = 0 ; i < 2 ; i ++ )
341339 {
342340 var result = await client . CallToolAsync (
343- nameof ( EchoTool . GetCtorParameter ) ,
341+ "get_ctor_parameter" ,
344342 cancellationToken : TestContext . Current . CancellationToken ) ;
345343
346344 Assert . NotNull ( result ) ;
@@ -366,7 +364,7 @@ public async Task Returns_IsError_Content_When_Tool_Fails()
366364 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
367365
368366 var result = await client . CallToolAsync (
369- "ThrowException " ,
367+ "throw_exception " ,
370368 cancellationToken : TestContext . Current . CancellationToken ) ;
371369
372370 Assert . True ( result . IsError ) ;
@@ -393,7 +391,7 @@ public async Task Returns_IsError_Missing_Parameter()
393391 await using IMcpClient client = await CreateMcpClientForServer ( ) ;
394392
395393 var result = await client . CallToolAsync (
396- "Echo " ,
394+ "echo " ,
397395 cancellationToken : TestContext . Current . CancellationToken ) ;
398396
399397 Assert . True ( result . IsError ) ;
@@ -436,7 +434,7 @@ public void Register_Tools_From_Current_Assembly()
436434 sc . AddMcpServer ( ) . WithToolsFromAssembly ( ) ;
437435 IServiceProvider services = sc . BuildServiceProvider ( ) ;
438436
439- Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "Echo " ) ;
437+ Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "echo " ) ;
440438 }
441439
442440 [ Theory ]
@@ -452,7 +450,7 @@ public void WithTools_Parameters_Satisfiable_From_DI(bool parameterInServices)
452450 sc . AddMcpServer ( ) . WithTools ( [ typeof ( EchoTool ) ] , BuilderToolsJsonContext . Default . Options ) ;
453451 IServiceProvider services = sc . BuildServiceProvider ( ) ;
454452
455- McpServerTool tool = services . GetServices < McpServerTool > ( ) . First ( t => t . ProtocolTool . Name == "EchoComplex " ) ;
453+ McpServerTool tool = services . GetServices < McpServerTool > ( ) . First ( t => t . ProtocolTool . Name == "echo_complex " ) ;
456454 if ( parameterInServices )
457455 {
458456 Assert . DoesNotContain ( "\" complex\" " , JsonSerializer . Serialize ( tool . ProtocolTool . InputSchema , AIJsonUtilities . DefaultOptions ) ) ;
@@ -495,7 +493,7 @@ public void WithToolsFromAssembly_Parameters_Satisfiable_From_DI(ServiceLifetime
495493 sc . AddMcpServer ( ) . WithToolsFromAssembly ( ) ;
496494 IServiceProvider services = sc . BuildServiceProvider ( ) ;
497495
498- McpServerTool tool = services . GetServices < McpServerTool > ( ) . First ( t => t . ProtocolTool . Name == "EchoComplex " ) ;
496+ McpServerTool tool = services . GetServices < McpServerTool > ( ) . First ( t => t . ProtocolTool . Name == "echo_complex " ) ;
499497 if ( lifetime is not null )
500498 {
501499 Assert . DoesNotContain ( "\" complex\" " , JsonSerializer . Serialize ( tool . ProtocolTool . InputSchema , AIJsonUtilities . DefaultOptions ) ) ;
@@ -516,8 +514,7 @@ public async Task Recognizes_Parameter_Types()
516514 Assert . NotNull ( tools ) ;
517515 Assert . NotEmpty ( tools ) ;
518516
519- var tool = tools . First ( t => t . Name == "TestTool" ) ;
520- Assert . Equal ( "TestTool" , tool . Name ) ;
517+ var tool = tools . First ( t => t . Name == "test_tool" ) ;
521518 Assert . Empty ( tool . Description ! ) ;
522519 Assert . Equal ( "object" , tool . JsonSchema . GetProperty ( "type" ) . GetString ( ) ) ;
523520
@@ -543,9 +540,9 @@ public void Register_Tools_From_Multiple_Sources()
543540
544541 Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "double_echo" ) ;
545542 Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "DifferentName" ) ;
546- Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "MethodB " ) ;
547- Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "MethodC " ) ;
548- Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "MethodD " ) ;
543+ Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "method_b " ) ;
544+ Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "method_c " ) ;
545+ Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "method_d " ) ;
549546 Assert . Contains ( services . GetServices < McpServerTool > ( ) , t => t . ProtocolTool . Name == "Returns42" ) ;
550547 }
551548
@@ -591,7 +588,7 @@ public async Task TitleAttributeProperty_PropagatedToTitle()
591588 Assert . NotNull ( tools ) ;
592589 Assert . NotEmpty ( tools ) ;
593590
594- McpClientTool tool = tools . First ( t => t . Name == nameof ( EchoTool . EchoComplex ) ) ;
591+ McpClientTool tool = tools . First ( t => t . Name == "echo_complex" ) ;
595592
596593 Assert . Equal ( "This is a title" , tool . Title ) ;
597594 Assert . Equal ( "This is a title" , tool . ProtocolTool . Title ) ;
@@ -607,7 +604,7 @@ public async Task HandlesIProgressParameter()
607604 Assert . NotNull ( tools ) ;
608605 Assert . NotEmpty ( tools ) ;
609606
610- McpClientTool progressTool = tools . First ( t => t . Name == nameof ( EchoTool . SendsProgressNotifications ) ) ;
607+ McpClientTool progressTool = tools . First ( t => t . Name == "sends_progress_notifications" ) ;
611608
612609 TaskCompletionSource tcs = new ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
613610 int remainingNotifications = 10 ;
@@ -660,7 +657,7 @@ public async Task CancellationNotificationsPropagateToToolTokens()
660657 var tools = await client . ListToolsAsync ( cancellationToken : TestContext . Current . CancellationToken ) ;
661658 Assert . NotNull ( tools ) ;
662659 Assert . NotEmpty ( tools ) ;
663- McpClientTool cancelableTool = tools . First ( t => t . Name == nameof ( EchoTool . InfiniteCancelableOperation ) ) ;
660+ McpClientTool cancelableTool = tools . First ( t => t . Name == "infinite_cancelable_operation" ) ;
664661
665662 var requestId = new RequestId ( Guid . NewGuid ( ) . ToString ( ) ) ;
666663 var invokeTask = client . SendRequestAsync < CallToolRequestParams , CallToolResult > (
0 commit comments