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
Copy file name to clipboardExpand all lines: src/index.ts
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -165,16 +165,23 @@ server.tool(
165
165
166
166
server.tool(
167
167
"get_event_type_info",
168
-
"Get event information about an event type, like first and last time bucket and 5 example events",
168
+
"Get event information about an event type, like first and last time bucket and 5 example events. Sensitive data should not be needed as it is masked in a correct format in the response, but if you need it ask the user if they are sure they want to include sensitive data, is false by default",
169
169
{
170
170
eventTypeId: z.string().describe("The event type ID to get information for"),
171
+
tenant: z.string().describe("The tenant name to get event type info for"),
172
+
includeSensitiveData: z
173
+
.boolean()
174
+
.optional()
175
+
.describe(
176
+
"Whether to include sensitive data in the response, CAUTION: This will return sensitive data from the event type, so use with caution, ask the user if they are sure they want to include sensitive data, is false by default",
177
+
),
171
178
},
172
179
getEventTypeInfoHandler(flowcoreClient),
173
180
)
174
181
175
182
server.tool(
176
183
"get_events",
177
-
"Get events for an event type, this can be paginated by using the cursor returned from the previous call. This is good for getting the payload of the events to inspect them. You can pageinate by using the cursor returned from the previous call. You can also filter by event id, time bucket, from event id, to event id, order, and page size. The order is ascending by default, and the page size is 500 by default. The cursor returned can be called nextCursor, it is a stringified object or a string, you need to pass it as is to paginate.",
184
+
"Get events for an event type, this can be paginated by using the cursor returned from the previous call. This is good for getting the payload of the events to inspect them. You can pageinate by using the cursor returned from the previous call. You can also filter by event id, time bucket, from event id, to event id, order, and page size. The order is ascending by default, and the page size is 500 by default. The cursor returned can be called nextCursor, it is a stringified object or a string, you need to pass it as is to paginate. Sensitive data should not be needed as it is masked in a correct format in the response, but if you need it ask the user if they are sure they want to include sensitive data, is false by default",
178
185
{
179
186
tenant: z.string().describe("The tenant name to get events for"),
180
187
eventTypeId: z.string().describe("The event type ID to get events for"),
@@ -198,6 +205,12 @@ server.tool(
198
205
.enum(["asc","desc"])
199
206
.optional()
200
207
.describe("The order of events (asc or desc). When using desc, pagination and filters are not possible"),
208
+
includeSensitiveData: z
209
+
.boolean()
210
+
.optional()
211
+
.describe(
212
+
"Whether to include sensitive data in the response, CAUTION: This will return sensitive data from the event type, so use with caution, ask the user if they are sure they want to include sensitive data, is false by default",
0 commit comments