get_measurement_protocol_secret
Retrieve or create an API secret for server-side event tracking in Google Analytics 4.
Instructions
Get or create a Measurement Protocol API secret for server-side event tracking.
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": {
"property_id": "<property_id>",
"stream_id": "<stream_id>"
},
"name": "get_measurement_protocol_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_id | Yes | ||
| property_id | Yes | ||
| display_name | No | MCP Server |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |