Google Analytics · Capability

Google Analytics Measurement Protocol (GA4) — Validation

Google Analytics Measurement Protocol (GA4) — Validation. 1 operations. Lead operation: Google Analytics Validate Events Without Sending to Google Analytics. Self-contained Naftiko capability covering one Google Analytics business surface.

Run with Naftiko Google AnalyticsValidation

What You Can Do

POST
Validateevents — Google Analytics Validate Events Without Sending to Google Analytics
/v1/collect/debug

MCP Tools

google-analytics-validate-events-without

Google Analytics Validate Events Without Sending to Google Analytics

read-only

Capability Spec

measurement-protocol-validation.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Analytics Measurement Protocol (GA4) — Validation
  description: 'Google Analytics Measurement Protocol (GA4) — Validation. 1 operations. Lead operation: Google Analytics Validate
    Events Without Sending to Google Analytics. Self-contained Naftiko capability covering one Google Analytics business surface.'
  tags:
  - Google Analytics
  - Validation
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_ANALYTICS_API_KEY: GOOGLE_ANALYTICS_API_KEY
capability:
  consumes:
  - type: http
    namespace: measurement-protocol-validation
    baseUri: https://www.google-analytics.com/mp
    description: Google Analytics Measurement Protocol (GA4) — Validation business capability. Self-contained, no shared references.
    resources:
    - name: collect-debug
      path: /collect/debug
      operations:
      - name: validateevents
        method: POST
        description: Google Analytics Validate Events Without Sending to Google Analytics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api_secret
          in: query
          type: string
          description: The API Secret generated in the Google Analytics UI.
          required: true
        - name: measurement_id
          in: query
          type: string
          description: The Measurement ID for a web data stream. Required for web streams.
        - name: firebase_app_id
          in: query
          type: string
          description: The Firebase App ID for an app data stream. Required for app streams.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: measurement-protocol-validation-rest
    port: 8080
    description: REST adapter for Google Analytics Measurement Protocol (GA4) — Validation. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/collect/debug
      name: collect-debug
      description: REST surface for collect-debug.
      operations:
      - method: POST
        name: validateevents
        description: Google Analytics Validate Events Without Sending to Google Analytics
        call: measurement-protocol-validation.validateevents
        with:
          api_secret: rest.api_secret
          measurement_id: rest.measurement_id
          firebase_app_id: rest.firebase_app_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: measurement-protocol-validation-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Analytics Measurement Protocol (GA4) — Validation. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: google-analytics-validate-events-without
      description: Google Analytics Validate Events Without Sending to Google Analytics
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: measurement-protocol-validation.validateevents
      with:
        api_secret: tools.api_secret
        measurement_id: tools.measurement_id
        firebase_app_id: tools.firebase_app_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.