Amazon Connect · Capability

Amazon Connect Service API — Metrics

Amazon Connect Service API — Metrics. 2 operations. Lead operation: Amazon Connect Get Current Metric Data. Self-contained Naftiko capability covering one Amazon Connect business surface.

Run with Naftiko Amazon ConnectMetrics

What You Can Do

POST
Getcurrentmetricdata — Amazon Connect Get Current Metric Data
/v1/metrics/current/{instanceid}
POST
Getmetricdata — Amazon Connect Get Historical Metric Data
/v1/metrics/historical/{instanceid}

MCP Tools

amazon-connect-get-current-metric

Amazon Connect Get Current Metric Data

read-only
amazon-connect-get-historical-metric

Amazon Connect Get Historical Metric Data

read-only

Capability Spec

amazon-connect-metrics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Connect Service API — Metrics
  description: 'Amazon Connect Service API — Metrics. 2 operations. Lead operation: Amazon Connect Get Current Metric Data.
    Self-contained Naftiko capability covering one Amazon Connect business surface.'
  tags:
  - Amazon Connect
  - Metrics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_CONNECT_API_KEY: AMAZON_CONNECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-connect-metrics
    baseUri: https://connect.amazonaws.com
    description: Amazon Connect Service API — Metrics business capability. Self-contained, no shared references.
    resources:
    - name: metrics-current-InstanceId
      path: /metrics/current/{InstanceId}
      operations:
      - name: getcurrentmetricdata
        method: POST
        description: Amazon Connect Get Current Metric Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: InstanceId
          in: path
          type: string
          description: The identifier of the Amazon Connect instance.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: metrics-historical-InstanceId
      path: /metrics/historical/{InstanceId}
      operations:
      - name: getmetricdata
        method: POST
        description: Amazon Connect Get Historical Metric Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: InstanceId
          in: path
          type: string
          description: The identifier of the Amazon Connect instance.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.AMAZON_CONNECT_API_KEY}}'
  exposes:
  - type: rest
    namespace: amazon-connect-metrics-rest
    port: 8080
    description: REST adapter for Amazon Connect Service API — Metrics. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/metrics/current/{instanceid}
      name: metrics-current-instanceid
      description: REST surface for metrics-current-InstanceId.
      operations:
      - method: POST
        name: getcurrentmetricdata
        description: Amazon Connect Get Current Metric Data
        call: amazon-connect-metrics.getcurrentmetricdata
        with:
          InstanceId: rest.InstanceId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/metrics/historical/{instanceid}
      name: metrics-historical-instanceid
      description: REST surface for metrics-historical-InstanceId.
      operations:
      - method: POST
        name: getmetricdata
        description: Amazon Connect Get Historical Metric Data
        call: amazon-connect-metrics.getmetricdata
        with:
          InstanceId: rest.InstanceId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-connect-metrics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Connect Service API — Metrics. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: amazon-connect-get-current-metric
      description: Amazon Connect Get Current Metric Data
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-connect-metrics.getcurrentmetricdata
      with:
        InstanceId: tools.InstanceId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-connect-get-historical-metric
      description: Amazon Connect Get Historical Metric Data
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-connect-metrics.getmetricdata
      with:
        InstanceId: tools.InstanceId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.