Get Script Metrics
get_script_metricsRetrieve execution metrics for a Google Apps Script project, including active users, total executions, and failed executions over time. Specify 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.
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 | The script project ID | |
| user_google_email | Yes | User's email address | |
| metrics_granularity | No | Granularity of metrics - "DAILY" or "WEEKLY" | DAILY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |