Get policy usage
get_policy_usageUsage report of one policy (policyId) or of a whole policy group (policyGroup: every policy of it added up, one row per policy), over the last 7 or 30 complete days (UTC), for the devices on the policies now: screen time (foreground hours of apps), the most-used apps by screen time, data usage (Wi-Fi and mobile MB) and the apps that used the most data, with a daily series. The same numbers as the policy's Insights tab in the portal. A policy whose data is not available says why (reason): no_devices, no_reports (nothing reported yet), no_settings_app or collector_off (the policy does not collect it: Nomid Settings and its statistics collector must be on), denied. Use it for usage, screen time, app usage, traffic or data consumption reports; present them as a table.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_policy_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The period: the last 7 (default) or 30 complete days (UTC), today excluded. | |
| company | No | Optional: a `company` value from list_companies to run this in. Omit it for the connection's own company. | |
| policyId | No | The policy's pathName (from list_policies), for one policy's usage. | |
| policyGroup | No | A policy group's name (as list_policies shows it under group) or path name, for every policy of the group added up. Give policyId or policyGroup, not both. |