Red Hat 3scale · Capability

Red Hat 3scale Analytics API — Applications

Red Hat 3scale Analytics API — Applications. 1 operations. Lead operation: Get Application Usage. Self-contained Naftiko capability covering one Red Hat 3scale business surface.

Run with Naftiko Red Hat 3scaleApplications

What You Can Do

GET
Getapplicationusage — Get Application Usage
/v1/applications/{application-id}/usage-json

MCP Tools

get-application-usage

Get Application Usage

read-only idempotent

Capability Spec

analytics-applications.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Red Hat 3scale Analytics API — Applications
  description: 'Red Hat 3scale Analytics API — Applications. 1 operations. Lead operation: Get Application Usage. Self-contained
    Naftiko capability covering one Red Hat 3scale business surface.'
  tags:
  - Red Hat 3scale
  - Applications
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RED_HAT_3SCALE_API_KEY: RED_HAT_3SCALE_API_KEY
capability:
  consumes:
  - type: http
    namespace: analytics-applications
    baseUri: https://{domain}-admin.3scale.net/stats
    description: Red Hat 3scale Analytics API — Applications business capability. Self-contained, no shared references.
    resources:
    - name: applications-application_id-usage.json
      path: /applications/{application_id}/usage.json
      operations:
      - name: getapplicationusage
        method: GET
        description: Get Application Usage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: application_id
          in: path
          type: integer
          description: The application ID
          required: true
        - name: metric_name
          in: query
          type: string
          description: The name of the metric to retrieve
          required: true
        - name: period
          in: query
          type: string
          description: The time period for the statistics
          required: true
        - name: since
          in: query
          type: string
          description: Start date for custom date range
        - name: until
          in: query
          type: string
          description: End date for custom date range
    authentication:
      type: apikey
      key: access_token
      value: '{{env.RED_HAT_3SCALE_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: analytics-applications-rest
    port: 8080
    description: REST adapter for Red Hat 3scale Analytics API — Applications. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/applications/{application-id}/usage-json
      name: applications-application-id-usage-json
      description: REST surface for applications-application_id-usage.json.
      operations:
      - method: GET
        name: getapplicationusage
        description: Get Application Usage
        call: analytics-applications.getapplicationusage
        with:
          application_id: rest.application_id
          metric_name: rest.metric_name
          period: rest.period
          since: rest.since
          until: rest.until
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: analytics-applications-mcp
    port: 9090
    transport: http
    description: MCP adapter for Red Hat 3scale Analytics API — Applications. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-application-usage
      description: Get Application Usage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: analytics-applications.getapplicationusage
      with:
        application_id: tools.application_id
        metric_name: tools.metric_name
        period: tools.period
        since: tools.since
        until: tools.until
      outputParameters:
      - type: object
        mapping: $.