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

NameTypeRequiredDescription
property_idstringyesGA4 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

FieldTypeDescription
dimensionsarrayAvailable dimensions for this property
metricsarrayAvailable metrics for this property
errorstringError message if connection failed
messagestringError 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.

Regenerated from source · build May 9, 2026