Miro · Capability

Miro Developer Platform — App metrics (experimental)

Miro Developer Platform — App metrics (experimental). 2 operations. Lead operation: Get app metrics. Self-contained Naftiko capability covering one Miro business surface.

Run with Naftiko MiroApp metrics (experimental)

What You Can Do

GET
Getmetrics — Get app metrics
/v1/v2-experimental/apps/{app-id}/metrics
GET
Getmetricstotal — Get total app metrics
/v1/v2-experimental/apps/{app-id}/metrics-total

MCP Tools

get-app-metrics

Get app metrics

read-only idempotent
get-total-app-metrics

Get total app metrics

read-only idempotent

Capability Spec

miro-app-metrics-experimental.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Miro Developer Platform — App metrics (experimental)
  description: 'Miro Developer Platform — App metrics (experimental). 2 operations. Lead operation: Get app metrics. Self-contained
    Naftiko capability covering one Miro business surface.'
  tags:
  - Miro
  - App metrics (experimental)
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MIRO_API_KEY: MIRO_API_KEY
capability:
  consumes:
  - type: http
    namespace: miro-app-metrics-experimental
    baseUri: https://api.miro.com
    description: Miro Developer Platform — App metrics (experimental) business capability. Self-contained, no shared references.
    resources:
    - name: v2-experimental-apps-app_id-metrics
      path: /v2-experimental/apps/{app_id}/metrics
      operations:
      - name: getmetrics
        method: GET
        description: Get app metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: app_id
          in: path
          type: string
          description: ID of the app to get metrics for.
          required: true
        - name: startDate
          in: query
          type: string
          description: Start date of the period in UTC format. For example, 2024-12-31.
          required: true
        - name: endDate
          in: query
          type: string
          description: End date of the period in UTC format. For example, 2024-12-31.
          required: true
        - name: period
          in: query
          type: string
          description: Group data by this time period.
    - name: v2-experimental-apps-app_id-metrics-total
      path: /v2-experimental/apps/{app_id}/metrics-total
      operations:
      - name: getmetricstotal
        method: GET
        description: Get total app metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: app_id
          in: path
          type: string
          description: ID of the app to get total metrics for.
          required: true
    authentication:
      type: bearer
      token: '{{env.MIRO_API_KEY}}'
  exposes:
  - type: rest
    namespace: miro-app-metrics-experimental-rest
    port: 8080
    description: REST adapter for Miro Developer Platform — App metrics (experimental). One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v2-experimental/apps/{app-id}/metrics
      name: v2-experimental-apps-app-id-metrics
      description: REST surface for v2-experimental-apps-app_id-metrics.
      operations:
      - method: GET
        name: getmetrics
        description: Get app metrics
        call: miro-app-metrics-experimental.getmetrics
        with:
          app_id: rest.app_id
          startDate: rest.startDate
          endDate: rest.endDate
          period: rest.period
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2-experimental/apps/{app-id}/metrics-total
      name: v2-experimental-apps-app-id-metrics-total
      description: REST surface for v2-experimental-apps-app_id-metrics-total.
      operations:
      - method: GET
        name: getmetricstotal
        description: Get total app metrics
        call: miro-app-metrics-experimental.getmetricstotal
        with:
          app_id: rest.app_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: miro-app-metrics-experimental-mcp
    port: 9090
    transport: http
    description: MCP adapter for Miro Developer Platform — App metrics (experimental). One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-app-metrics
      description: Get app metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: miro-app-metrics-experimental.getmetrics
      with:
        app_id: tools.app_id
        startDate: tools.startDate
        endDate: tools.endDate
        period: tools.period
      outputParameters:
      - type: object
        mapping: $.
    - name: get-total-app-metrics
      description: Get total app metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: miro-app-metrics-experimental.getmetricstotal
      with:
        app_id: tools.app_id
      outputParameters:
      - type: object
        mapping: $.