Skip to content

Commit 98a1916

Browse files
authored
Merge pull request #33 from Luovula/fix/update-database-schema
Fix: Add missing items schema to query and update database tools
2 parents 442eceb + 88e812e commit 98a1916

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

notion/src/index.ts

+13
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,18 @@ const queryDatabaseTool: Tool = {
697697
sorts: {
698698
type: "array",
699699
description: "Sort conditions",
700+
items: {
701+
type: "object",
702+
properties: {
703+
property: { type: "string" },
704+
timestamp: { type: "string" },
705+
direction: {
706+
type: "string",
707+
enum: ["ascending", "descending"]
708+
}
709+
},
710+
required: ["direction"]
711+
}
700712
},
701713
start_cursor: {
702714
type: "string",
@@ -749,6 +761,7 @@ const updateDatabaseTool: Tool = {
749761
type: "array",
750762
description:
751763
"An array of rich text objects that represents the description of the database that is displayed in the Notion UI.",
764+
items: richTextObjectSchema,
752765
},
753766
properties: {
754767
type: "object",

0 commit comments

Comments
 (0)