Skip to content

Commit ce3b0ed

Browse files
Fix test for tool with conditional parameters
The test was calling a tool without providing a parameter that the SQL template requires. Updated to provide both parameters. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 868ca45 commit ce3b0ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sql/mcp_resource_publishing.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ SELECT mcp_server_send_request('{"jsonrpc":"2.0","id":110,"method":"tools/call",
326326
----
327327
true
328328

329-
# Optional parameter (max_price not required)
329+
# Both parameters provided (testing Gadget product)
330330
query I
331-
SELECT mcp_server_send_request('{"jsonrpc":"2.0","id":111,"method":"tools/call","params":{"name":"search_products","arguments":{"pattern":"%Gadget%"}}}') LIKE '%Gadget%';
331+
SELECT mcp_server_send_request('{"jsonrpc":"2.0","id":111,"method":"tools/call","params":{"name":"search_products","arguments":{"pattern":"%Gadget%","max_price":"50"}}}') LIKE '%Gadget%';
332332
----
333333
true
334334

0 commit comments

Comments
 (0)