get_script_metrics
Retrieve execution metrics for Apps Script projects to monitor active users, total and failed executions over time, with daily or weekly granularity.
Instructions
Gets execution metrics for a script project.
Returns analytics data including active users, total executions, and failed executions over time.
Args: service: Injected Google API service client user_google_email: User's email address script_id: The script project ID metrics_granularity: Granularity of metrics - "DAILY" or "WEEKLY"
Returns: str: Formatted string with metrics data
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_google_email": "<user_google_email>",
"script_id": "<script_id>"
},
"name": "get_script_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | ||
| user_google_email | Yes | ||
| metrics_granularity | No | DAILY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |