ga_get_metadata
Pack: google_analytics · Endpoint: https://gateway.pipeworx.io/google_analytics/mcp
Discover available dimensions and metrics for a GA4 property. Returns field names, descriptions, and data types to build accurate ga_run_report queries.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
property_id | string | yes | GA4 property ID (numeric) |
Example call
Arguments
{
"property_id": "123456789"
}
curl
curl -X POST https://gateway.pipeworx.io/google_analytics/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ga_get_metadata","arguments":{"property_id":"123456789"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ga_get_metadata', {
"property_id": "123456789"
});
Response shape
| Field | Type | Description |
|---|---|---|
dimensions | array | Available dimensions for this property |
metrics | array | Available metrics for this property |
error | string | Error message if connection failed |
message | string | Error details if connection failed |
Full JSON Schema
{
"type": "object",
"properties": {
"dimensions": {
"type": "array",
"description": "Available dimensions for this property",
"items": {
"type": "object",
"properties": {
"apiName": {
"type": "string",
"description": "API name of the dimension"
},
"uiName": {
"type": "string",
"description": "UI display name"
},
"description": {
"type": "string",
"description": "Description of the dimension"
},
"dataType": {
"type": "string",
"description": "Data type of the dimension"
}
}
}
},
"metrics": {
"type": "array",
"description": "Available metrics for this property",
"items": {
"type": "object",
"properties": {
"apiName": {
"type": "string",
"description": "API name of the metric"
},
"uiName": {
"type": "string",
"description": "UI display name"
},
"description": {
"type": "string",
"description": "Description of the metric"
},
"dataType": {
"type": "string",
"description": "Data type of the metric"
}
}
}
},
"error": {
"type": "string",
"description": "Error message if connection failed"
},
"message": {
"type": "string",
"description": "Error details if connection failed"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"google_analytics": {
"url": "https://gateway.pipeworx.io/google_analytics/mcp"
}
}
}
See Getting Started for client-specific install steps.