get_script_metrics
Fetch metrics data for Google Apps Script projects by specifying script ID, deployment ID, and granularity.
Instructions
Get metrics data for Google Apps Script projects.
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": {
"scriptId": "<scriptId>",
"deploymentId": "<deploymentId>",
"metricsGranularity": "<metricsGranularity>",
"fields": "<fields>"
},
"name": "get_script_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Selector specifying which fields to include in a partial response. | |
| scriptId | Yes | The ID of the script project. | |
| deploymentId | Yes | The ID of the deployment to filter metrics. | |
| metricsGranularity | Yes | The granularity of the metrics data. |