File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -95,33 +95,6 @@ private function register_tools( $server, $client ) {
9595 new FileTools ( $ server );
9696 new URLTools ( $ server );
9797
98- $ server ->register_tool (
99- [
100- 'name ' => 'calculate_total ' ,
101- 'description ' => 'Calculates the total price. ' ,
102- 'inputSchema ' => [
103- 'type ' => 'object ' ,
104- 'properties ' => [
105- 'price ' => [
106- 'type ' => 'integer ' ,
107- 'description ' => 'The price of the item. ' ,
108- ],
109- 'quantity ' => [
110- 'type ' => 'integer ' ,
111- 'description ' => 'The quantity of items. ' ,
112- ],
113- ],
114- 'required ' => [ 'price ' , 'quantity ' ],
115- ],
116- 'callable ' => function ( $ params ) {
117- $ price = $ params ['price ' ] ?? 0 ;
118- $ quantity = $ params ['quantity ' ] ?? 1 ;
119-
120- return $ price * $ quantity ;
121- },
122- ]
123- );
124-
12598 $ server ->register_tool (
12699 [
127100 'name ' => 'fetch_wp_community_events ' ,
You can’t perform that action at this time.
0 commit comments