@@ -21,7 +21,7 @@ def basic_tool() -> Tool:
2121 return Tool (
2222 name = "test_tool" ,
2323 description = "Test tool description" ,
24- inputSchema = {"type" : "object" , "properties" : {}},
24+ input_schema = {"type" : "object" , "properties" : {}},
2525 )
2626
2727
@@ -31,7 +31,7 @@ def tool_with_params() -> Tool:
3131 return Tool (
3232 name = "create_item" ,
3333 description = "Create a new item" ,
34- inputSchema = {
34+ input_schema = {
3535 "type" : "object" ,
3636 "properties" : {"name" : {"type" : "string" }, "quantity" : {"type" : "integer" }},
3737 "required" : ["name" ],
@@ -45,7 +45,7 @@ def tool_with_enum() -> Tool:
4545 return Tool (
4646 name = "status_tool" ,
4747 description = "Tool with status enum" ,
48- inputSchema = {
48+ input_schema = {
4949 "type" : "object" ,
5050 "properties" : {"status" : {"type" : "string" , "enum" : ["active" , "inactive" ]}},
5151 "required" : ["status" ],
@@ -58,7 +58,7 @@ def tool_with_boolean() -> Tool:
5858 """Create a Tool with boolean parameter."""
5959 return Tool (
6060 name = "flag_tool" ,
61- inputSchema = {
61+ input_schema = {
6262 "type" : "object" ,
6363 "properties" : {"enabled" : {"type" : "boolean" }},
6464 "required" : [],
@@ -69,15 +69,15 @@ def tool_with_boolean() -> Tool:
6969@pytest .fixture
7070def empty_tool () -> Tool :
7171 """Create a Tool without parameters."""
72- return Tool (name = "empty_tool" , inputSchema = {"type" : "object" , "properties" : {}})
72+ return Tool (name = "empty_tool" , input_schema = {"type" : "object" , "properties" : {}})
7373
7474
7575@pytest .fixture
7676def tool_with_literal () -> Tool :
7777 """Create a Tool with Literal type enum."""
7878 return Tool (
7979 name = "tool_with_literal" ,
80- inputSchema = {
80+ input_schema = {
8181 "type" : "object" ,
8282 "properties" : {"choice" : {"type" : "string" , "enum" : ["a" , "b" , "c" ]}},
8383 },
@@ -222,7 +222,7 @@ async def test_generate_stub_to_file(self, tmp_path: Any, empty_tool: Tool) -> N
222222 config_file .write_text (json .dumps (config_data ))
223223
224224 # Rename the tool for this test
225- test_tool = Tool (name = "my_tool" , inputSchema = empty_tool .inputSchema )
225+ test_tool = Tool (name = "my_tool" , input_schema = empty_tool .input_schema )
226226
227227 # Mock Client
228228 mock_mcp = AsyncMock ()
0 commit comments