KosmoKrator

analytics

Google Admin Reports CLI for AI Agents

Use the Google Admin Reports CLI from KosmoKrator to call Google Admin Reports tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Google Admin Reports CLI Setup

Google Admin Reports can be configured headlessly with `kosmokrator integrations:configure google-admin-reports`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure google-admin-reports --enable --read allow --write ask --json
kosmokrator integrations:doctor google-admin-reports --json
kosmokrator integrations:status --json

Credentials

Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

No credentials are required.

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call google-admin-reports.google_admin_reports_user_usage_report_get '{}' --json
Provider shortcut
kosmo integrations:google-admin-reports google_admin_reports_user_usage_report_get '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs google-admin-reports --json
kosmo integrations:docs google-admin-reports.google_admin_reports_user_usage_report_get --json
kosmo integrations:schema google-admin-reports.google_admin_reports_user_usage_report_get --json
kosmo integrations:search "Google Admin Reports" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

google-admin-reports.google_admin_reports_user_usage_report_get

User Usage Report Get (GET /admin/reports/v1/usage/users/{userKey}/dates/{date}).

Read read
Parameters
none
Generic call
kosmo integrations:call google-admin-reports.google_admin_reports_user_usage_report_get '{}' --json
Shortcut
kosmo integrations:google-admin-reports google_admin_reports_user_usage_report_get '{}' --json

google-admin-reports.google_admin_reports_customer_usage_reports_get

Customer Usage Reports Get (GET /admin/reports/v1/usage/dates/{date}).

Read read
Parameters
none
Generic call
kosmo integrations:call google-admin-reports.google_admin_reports_customer_usage_reports_get '{}' --json
Shortcut
kosmo integrations:google-admin-reports google_admin_reports_customer_usage_reports_get '{}' --json

google-admin-reports.google_admin_reports_entity_usage_reports_get

Entity Usage Reports Get (GET /admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}).

Read read
Parameters
none
Generic call
kosmo integrations:call google-admin-reports.google_admin_reports_entity_usage_reports_get '{}' --json
Shortcut
kosmo integrations:google-admin-reports google_admin_reports_entity_usage_reports_get '{}' --json

google-admin-reports.google_admin_reports_channels_stop

Channels Stop (POST /admin/reports_v1/channels/stop).

Write write
Parameters
none
Generic call
kosmo integrations:call google-admin-reports.google_admin_reports_channels_stop '{}' --json
Shortcut
kosmo integrations:google-admin-reports google_admin_reports_channels_stop '{}' --json

google-admin-reports.google_admin_reports_activities_list

Activities List (GET /admin/reports/v1/activity/users/{userKey}/applications/{applicationName}).

Read read
Parameters
none
Generic call
kosmo integrations:call google-admin-reports.google_admin_reports_activities_list '{}' --json
Shortcut
kosmo integrations:google-admin-reports google_admin_reports_activities_list '{}' --json

google-admin-reports.google_admin_reports_activities_watch

Activities Watch (POST /admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch).

Write write
Parameters
none
Generic call
kosmo integrations:call google-admin-reports.google_admin_reports_activities_watch '{}' --json
Shortcut
kosmo integrations:google-admin-reports google_admin_reports_activities_watch '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

google-admin-reports.google_admin_reports_user_usage_report_get 0 parameters
Schema command
kosmo integrations:schema google-admin-reports.google_admin_reports_user_usage_report_get --json
ParameterTypeRequiredDescription
No parameters.
google-admin-reports.google_admin_reports_customer_usage_reports_get 0 parameters
Schema command
kosmo integrations:schema google-admin-reports.google_admin_reports_customer_usage_reports_get --json
ParameterTypeRequiredDescription
No parameters.
google-admin-reports.google_admin_reports_entity_usage_reports_get 0 parameters
Schema command
kosmo integrations:schema google-admin-reports.google_admin_reports_entity_usage_reports_get --json
ParameterTypeRequiredDescription
No parameters.
google-admin-reports.google_admin_reports_channels_stop 0 parameters
Schema command
kosmo integrations:schema google-admin-reports.google_admin_reports_channels_stop --json
ParameterTypeRequiredDescription
No parameters.
google-admin-reports.google_admin_reports_activities_list 0 parameters
Schema command
kosmo integrations:schema google-admin-reports.google_admin_reports_activities_list --json
ParameterTypeRequiredDescription
No parameters.
google-admin-reports.google_admin_reports_activities_watch 0 parameters
Schema command
kosmo integrations:schema google-admin-reports.google_admin_reports_activities_watch --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.