|
@@ -421,6 +421,7 @@ public class McpToolRegistry {
|
|
|
|
|
|
|
|
private static Map<String, Object> required(String name, String type, String description) {
|
|
private static Map<String, Object> required(String name, String type, String description) {
|
|
|
Map<String, Object> p = new LinkedHashMap<>();
|
|
Map<String, Object> p = new LinkedHashMap<>();
|
|
|
|
|
+ p.put("name", name);
|
|
|
p.put("type", type);
|
|
p.put("type", type);
|
|
|
p.put("description", description);
|
|
p.put("description", description);
|
|
|
return p;
|
|
return p;
|
|
@@ -428,6 +429,7 @@ public class McpToolRegistry {
|
|
|
|
|
|
|
|
private static Map<String, Object> optional(String name, String type, String description) {
|
|
private static Map<String, Object> optional(String name, String type, String description) {
|
|
|
Map<String, Object> p = new LinkedHashMap<>();
|
|
Map<String, Object> p = new LinkedHashMap<>();
|
|
|
|
|
+ p.put("name", name);
|
|
|
p.put("type", type);
|
|
p.put("type", type);
|
|
|
p.put("description", description);
|
|
p.put("description", description);
|
|
|
return p;
|
|
return p;
|