You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dataCoreId: z.string().describe("The data core ID to get"),
79
+
},getDataCoreHandler(flowcoreClient))
80
+
81
+
server.tool("get_flow_type","Get a flow type",{
82
+
flowTypeId: z.string().describe("The flow type ID to get"),
83
+
},getFlowTypeHandler(flowcoreClient))
84
+
85
+
server.tool("get_event_type","Get an event type",{
86
+
eventTypeId: z.string().describe("The event type ID to get"),
87
+
},getEventTypeHandler(flowcoreClient))
88
+
66
89
server.tool("list_tenants","List all tenants I have access to",listTenantsHandler(flowcoreClient))
67
90
server.tool(
68
91
"list_data_cores",
@@ -138,6 +161,83 @@ server.tool(
138
161
getTimeBucketsHandler(flowcoreClient),
139
162
)
140
163
164
+
// Write tools
165
+
server.tool(
166
+
"create_data_core",
167
+
"Create a data core in a tenant",
168
+
{
169
+
tenantId: z.string().describe("The tenant ID to create the data core for"),
170
+
name: z.string().describe("The name of the data core"),
171
+
description: z.string().describe("The description of the data core"),
172
+
accessControl: z.enum(["public","private"]).describe("The access control of the data core"),
173
+
deleteProtection: z.boolean().describe("Whether the data core is delete protected"),
174
+
},
175
+
createDataCoreHandler(flowcoreClient),
176
+
)
177
+
178
+
server.tool(
179
+
"create_flow_type",
180
+
"Create a flow type in a data core",
181
+
{
182
+
dataCoreId: z.string().describe("The id of the data core"),
183
+
name: z.string().describe("The name of the flow type"),
184
+
description: z.string().describe("The description of the flow type"),
185
+
},
186
+
createFlowTypeHandler(flowcoreClient),
187
+
)
188
+
189
+
server.tool(
190
+
"create_event_type",
191
+
"Create an event type in a flow type",
192
+
{
193
+
flowTypeId: z.string().describe("The id of the flow type"),
194
+
name: z.string().describe("The name of the event type"),
195
+
description: z.string().describe("The description of the event type"),
196
+
},
197
+
createEventTypeHandler(flowcoreClient),
198
+
)
199
+
200
+
server.tool(
201
+
"request_delete_event_type",
202
+
"Request to delete an event type, this will delete all events in the event type, this is irreversible. If wait for delete is true the tool will wait up to 25 seconds for the event type to be deleted, if not it will return immediately, you have to use the get_event_type tool to check if the event type is deleted.",
203
+
{
204
+
eventTypeId: z.string().describe("The id of the event type"),
205
+
waitForDelete: z.boolean().optional().describe("Wait for the event type to be deleted (default: false)"),
206
+
},
207
+
requestDeleteEventTypeHandler(flowcoreClient),
208
+
)
209
+
210
+
server.tool(
211
+
"request_truncate_event_type",
212
+
"Request to truncate an event type, this will delete all events in the event type, this is irreversible. If wait for truncate is true the tool will wait up to 25 seconds for the event type to be truncated, if not it will return immediately, you have to use the get_event_type tool to check if the event type is truncated.",
213
+
{
214
+
eventTypeId: z.string().describe("The id of the event type"),
215
+
waitForTruncate: z.boolean().optional().describe("Wait for the event type to be truncated (default: false)"),
216
+
},
217
+
requestTruncateEventTypeHandler(flowcoreClient),
218
+
)
219
+
220
+
server.tool(
221
+
"request_delete_flow_type",
222
+
"Request to delete a flow type, this will delete all events in the flow type, this is irreversible. If wait for delete is true the tool will wait up to 25 seconds for the flow type to be deleted, if not it will return immediately, you have to use the get_flow_type tool to check if the flow type is deleted.",
223
+
{
224
+
flowTypeId: z.string().describe("The id of the flow type"),
225
+
waitForDelete: z.boolean().optional().describe("Wait for the flow type to be deleted (default: false)"),
226
+
},
227
+
requestDeleteFlowTypeHandler(flowcoreClient),
228
+
)
229
+
230
+
server.tool(
231
+
"request_delete_data_core",
232
+
"Request to delete a data core, this will delete all events in the data core, this is irreversible. If wait for delete is true the tool will wait up to 25 seconds for the data core to be deleted, if not it will return immediately, you have to use the get_data_core tool to check if the data core is deleted.",
233
+
{
234
+
dataCoreId: z.string().describe("The id of the data core"),
235
+
waitForDelete: z.boolean().optional().describe("Wait for the data core to be deleted (default: false)"),
0 commit comments