GA4 Admin API: free-form request
ga4_admin_requestSend arbitrary GET, POST, PATCH, or DELETE requests to the GA4 Admin API for configuration tasks that lack a dedicated tool; DELETE calls preview unless confirm=true.
Instructions
Arbitrary call to the GA4 Admin API (analyticsadmin.googleapis.com) for anything without its own tool — e.g. PATCH 'properties/123/dataRetentionSettings?updateMask=eventDataRetention', DELETE 'properties/123/keyEvents/456', POST 'properties/123/customDimensions/789:archive', POST 'properties/123/dataStreams/111/measurementProtocolSecrets'. Path relative to the API version. Without confirm=true, DELETE only shows the current state of the resource and deletes nothing.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "ga4_admin_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PATCH | |
| path | Yes | Relative path incl. query, e.g. 'properties/123/keyEvents' | |
| method | Yes | ||
| confirm | No | DELETE only: without it a preview, with true it deletes | |
| apiVersion | No | Default v1beta; v1alpha for alpha features |