Skip to content

Commit bad0417

Browse files
authored
add support for isRequired and adjust defaults (#228)
1 parent 7ce94f0 commit bad0417

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.microsoft.azure.functions</groupId>
66
<artifactId>azure-functions-java-library</artifactId>
7-
<version>3.2.1</version>
7+
<version>3.2.2</version>
88
<packaging>jar</packaging>
99
<parent>
1010
<groupId>com.microsoft.maven</groupId>

src/main/java/com/microsoft/azure/functions/annotation/McpToolProperty.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,19 @@
6161
*
6262
* @return Description of the property
6363
*/
64-
String description();
64+
String description() default "";
6565

6666
/**
6767
* Whether this property is required for tool execution.
6868
*
6969
* @return true if required, false if optional
7070
*/
71-
boolean isRequired();
71+
boolean isRequired() default false;
72+
73+
/**
74+
* Whether this property is an array.
75+
*
76+
* @return true if this property is an array, false otherwise
77+
*/
78+
boolean isArray() default false;
7279
}

src/main/java/com/microsoft/azure/functions/annotation/McpToolTrigger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
*
6565
* @return Description of the tool's functionality
6666
*/
67-
String description();
67+
String description() default "";
6868

6969
/**
7070
* JSON array defining expected tool properties.

0 commit comments

Comments
 (0)