ga4_update_measurement_protocol_secret
Rename a GA4 Measurement Protocol secret by updating only the fields you change; write access and confirm=true are required to apply it.
Instructions
[GA4 WRITE] Rename a Measurement Protocol secret. Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
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": {
"name": "<name>",
"displayName": "<displayName>",
"confirm": "<confirm>"
},
"name": "ga4_update_measurement_protocol_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full resource name of the Measurement Protocol secret to target: "properties/{property}/dataStreams/{stream}/measurementProtocolSecrets/{id}". | |
| confirm | Yes | Must be true to apply the change. | |
| updateMask | No | Comma-separated field paths to update. Omit to derive from the supplied fields. | |
| displayName | Yes |