get_script_metrics_tool
Analyze Google Apps Script performance by retrieving execution metrics including active users, total executions, and failures over time.
Instructions
Get execution metrics for a script project.
Returns analytics data including active users, total executions, and failed executions over time.
Args: script_id: The script project ID metrics_granularity: Granularity of metrics - "DAILY" or "WEEKLY"
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": {
"script_id": "<script_id>"
},
"name": "get_script_metrics_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | ||
| metrics_granularity | No | DAILY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |