diff --git a/crates/rmcp/tests/common/calculator.rs b/crates/rmcp/tests/common/calculator.rs index 7af075cec..e179f2583 100644 --- a/crates/rmcp/tests/common/calculator.rs +++ b/crates/rmcp/tests/common/calculator.rs @@ -18,14 +18,14 @@ impl Calculator { (a + b).to_string() } - #[tool(description = "Calculate the sum of two numbers")] + #[tool(description = "Calculate the sub of two numbers")] fn sub( &self, #[tool(param)] #[schemars(description = "the left hand side number")] a: i32, #[tool(param)] - #[schemars(description = "the left hand side number")] + #[schemars(description = "the right hand side number")] b: i32, ) -> String { (a - b).to_string() diff --git a/examples/transport/src/common/calculator.rs b/examples/transport/src/common/calculator.rs index a175e8ee6..99b7314a1 100644 --- a/examples/transport/src/common/calculator.rs +++ b/examples/transport/src/common/calculator.rs @@ -14,14 +14,14 @@ impl Calculator { (a + b).to_string() } - #[tool(description = "Calculate the sum of two numbers")] + #[tool(description = "Calculate the sub of two numbers")] fn sub( &self, #[tool(param)] #[schemars(description = "the left hand side number")] a: i32, #[tool(param)] - #[schemars(description = "the left hand side number")] + #[schemars(description = "the right hand side number")] b: i32, ) -> String { (a - b).to_string() diff --git a/examples/wasi/src/calculator.rs b/examples/wasi/src/calculator.rs index e45bbe55c..f1c35eeac 100644 --- a/examples/wasi/src/calculator.rs +++ b/examples/wasi/src/calculator.rs @@ -18,14 +18,14 @@ impl Calculator { (a + b).to_string() } - #[tool(description = "Calculate the sum of two numbers")] + #[tool(description = "Calculate the sub of two numbers")] fn sub( &self, #[tool(param)] #[schemars(description = "the left hand side number")] a: i32, #[tool(param)] - #[schemars(description = "the left hand side number")] + #[schemars(description = "the right hand side number")] b: i32, ) -> String { (a - b).to_string()