WunderGraph · Capability

WunderGraph Cosmo Platform API — Analytics

WunderGraph Cosmo Platform API — Analytics. 1 operations. Lead operation: WunderGraph Get graph analytics. Self-contained Naftiko capability covering one Wundergraph business surface.

Run with Naftiko WundergraphAnalytics

What You Can Do

GET
Getanalytics — WunderGraph Get graph analytics
/v1/v1/analytics

MCP Tools

wundergraph-get-graph-analytics

WunderGraph Get graph analytics

read-only idempotent

Capability Spec

cosmo-platform-analytics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WunderGraph Cosmo Platform API — Analytics
  description: 'WunderGraph Cosmo Platform API — Analytics. 1 operations. Lead operation: WunderGraph Get graph analytics.
    Self-contained Naftiko capability covering one Wundergraph business surface.'
  tags:
  - Wundergraph
  - Analytics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WUNDERGRAPH_API_KEY: WUNDERGRAPH_API_KEY
capability:
  consumes:
  - type: http
    namespace: cosmo-platform-analytics
    baseUri: https://cosmo-cp.wundergraph.com
    description: WunderGraph Cosmo Platform API — Analytics business capability. Self-contained, no shared references.
    resources:
    - name: v1-analytics
      path: /v1/analytics
      operations:
      - name: getanalytics
        method: GET
        description: WunderGraph Get graph analytics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: federatedGraphName
          in: query
          type: string
          description: The name of the federated graph.
          required: true
        - name: namespace
          in: query
          type: string
          description: The namespace of the graph.
        - name: startDate
          in: query
          type: string
          description: Start of the analytics time range.
        - name: endDate
          in: query
          type: string
          description: End of the analytics time range.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.WUNDERGRAPH_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: cosmo-platform-analytics-rest
    port: 8080
    description: REST adapter for WunderGraph Cosmo Platform API — Analytics. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/analytics
      name: v1-analytics
      description: REST surface for v1-analytics.
      operations:
      - method: GET
        name: getanalytics
        description: WunderGraph Get graph analytics
        call: cosmo-platform-analytics.getanalytics
        with:
          federatedGraphName: rest.federatedGraphName
          namespace: rest.namespace
          startDate: rest.startDate
          endDate: rest.endDate
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cosmo-platform-analytics-mcp
    port: 9090
    transport: http
    description: MCP adapter for WunderGraph Cosmo Platform API — Analytics. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: wundergraph-get-graph-analytics
      description: WunderGraph Get graph analytics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cosmo-platform-analytics.getanalytics
      with:
        federatedGraphName: tools.federatedGraphName
        namespace: tools.namespace
        startDate: tools.startDate
        endDate: tools.endDate
      outputParameters:
      - type: object
        mapping: $.