Skip to content

Commit 5b55344

Browse files
ThisIsDemetriodemetrio.marino
andauthored
feat: view_audit_logs tool now automatically include a date range (#29)
Co-authored-by: demetrio.marino <[email protected]>
1 parent ff7dd48 commit 5b55344

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/tools/descriptions.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ export const toolsDescriptions = {
5454
LIST_TENANTS: 'List Mia-Platform Console companies or tenants that the user can access. Only companies or tenants with AI features enabled will be returned.',
5555
LIST_TENANTS_TEMPLATES: 'List Mia-Platform project templates for a given company or tenant',
5656
LIST_TENANTS_IAM: 'List IAM user, groups and or service account for a company or tenant',
57-
VIEW_TENANTS_AUDIT_LOGS: 'View audit logs for a company or tenant to see who did what and when',
57+
VIEW_TENANTS_AUDIT_LOGS: `\
58+
View audit logs for a company or tenant, to receive a detailed list of operations performed in the tenant by every user. \
59+
You can filter the logs by date range. If no date range is specified by the user, please add a timestamp of the last 7 days. \
60+
Do never attemp to fetch all the logs without a date range filter, as it could lead to performance issues.\
61+
`,
5862

5963
// marketplace tools
6064
LIST_MARKETPLACE: `
@@ -111,8 +115,8 @@ export const paramsDescriptions = {
111115
IAM_IDENTITY_TYPE: 'Filter the IAM entities by type',
112116

113117
// Audit Logs
114-
AUDIT_LOG_FROM: 'The start date of the audit logs to fetch, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss), e.g., "2024-01-15T10:30:00"',
115-
AUDIT_LOG_TO: 'The end date of the audit logs to fetch, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss), e.g., "2024-01-15T23:59:59"',
118+
AUDIT_LOG_FROM: 'The start date of the audit logs to fetch, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss, e.g., "2024-01-15T10:30:00"). Include this parameter to limit the logs if the parameter "to" is included as well.',
119+
AUDIT_LOG_TO: 'The end date of the audit logs to fetch, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss, e.g., "2024-01-15T23:59:59"). Include this parameter to limit the logs if the parameter "from" is included as well.',
116120

117121
// Marketplace
118122
MARKETPLACE_ITEM_ID: `The marketplace item to use to create the service. Can be found in the itemId field of the ${toolNames.LIST_MARKETPLACE} tool`,

0 commit comments

Comments
 (0)