Skip to content

Commit bb5fdd2

Browse files
authored
Merge pull request modelcontextprotocol#87 from strowk/main
Add array of required properties to inputSchema of Tool
2 parents 7b8e87c + 2aedf91 commit bb5fdd2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

schema/schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,6 +1984,12 @@
19841984
},
19851985
"type": "object"
19861986
},
1987+
"required": {
1988+
"items": {
1989+
"type": "string"
1990+
},
1991+
"type": "array"
1992+
},
19871993
"type": {
19881994
"const": "object",
19891995
"type": "string"

schema/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ export interface Tool {
695695
inputSchema: {
696696
type: "object";
697697
properties?: { [key: string]: object };
698+
required?: string[];
698699
};
699700
}
700701

0 commit comments

Comments
 (0)