Portkey · Capability

Portkey API — Analytics > Summary

Portkey API — Analytics > Summary. 1 operations. Lead operation: Get cache summary data for the selected time period. Self-contained Naftiko capability covering one Portkey business surface.

Run with Naftiko PortkeyAnalytics > Summary

What You Can Do

GET
Get — Get cache summary data for the selected time period
/v1/analytics/summary/cache

MCP Tools

get-cache-summary-data-selected

Get cache summary data for the selected time period

read-only idempotent

Capability Spec

portkey-analytics-summary.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Portkey API — Analytics > Summary
  description: 'Portkey API — Analytics > Summary. 1 operations. Lead operation: Get cache summary data for the selected time
    period. Self-contained Naftiko capability covering one Portkey business surface.'
  tags:
  - Portkey
  - Analytics > Summary
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTKEY_API_KEY: PORTKEY_API_KEY
capability:
  consumes:
  - type: http
    namespace: portkey-analytics-summary
    baseUri: https://api.portkey.ai/v1
    description: Portkey API — Analytics > Summary business capability. Self-contained, no shared references.
    resources:
    - name: analytics-summary-cache
      path: /analytics/summary/cache
      operations:
      - name: get
        method: GET
        description: Get cache summary data for the selected time period
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.PORTKEY_API_KEY}}'
  exposes:
  - type: rest
    namespace: portkey-analytics-summary-rest
    port: 8080
    description: REST adapter for Portkey API — Analytics > Summary. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/analytics/summary/cache
      name: analytics-summary-cache
      description: REST surface for analytics-summary-cache.
      operations:
      - method: GET
        name: get
        description: Get cache summary data for the selected time period
        call: portkey-analytics-summary.get
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portkey-analytics-summary-mcp
    port: 9090
    transport: http
    description: MCP adapter for Portkey API — Analytics > Summary. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-cache-summary-data-selected
      description: Get cache summary data for the selected time period
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portkey-analytics-summary.get
      outputParameters:
      - type: object
        mapping: $.