Cloudflare · Capability

Cloudflare AI Gateway API — Logs

Cloudflare AI Gateway API — Logs. 1 operations. Lead operation: Cloudflare List Ai Gateway Logs. Self-contained Naftiko capability covering one Cloudflare business surface.

Run with Naftiko CloudflareLogs

What You Can Do

GET
Listaigatewaylogs — Cloudflare List Ai Gateway Logs
/v1/accounts/{account-id}/ai-gateway/gateways/{gateway-id}/logs

MCP Tools

cloudflare-list-ai-gateway-logs

Cloudflare List Ai Gateway Logs

read-only idempotent

Capability Spec

ai-gateway-logs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Cloudflare AI Gateway API — Logs
  description: 'Cloudflare AI Gateway API — Logs. 1 operations. Lead operation: Cloudflare List Ai Gateway Logs. Self-contained
    Naftiko capability covering one Cloudflare business surface.'
  tags:
  - Cloudflare
  - Logs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOUDFLARE_API_KEY: CLOUDFLARE_API_KEY
capability:
  consumes:
  - type: http
    namespace: ai-gateway-logs
    baseUri: https://api.cloudflare.com/client/v4
    description: Cloudflare AI Gateway API — Logs business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_id-ai-gateway-gateways-gateway_id-logs
      path: /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs
      operations:
      - name: listaigatewaylogs
        method: GET
        description: Cloudflare List Ai Gateway Logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: Page number for pagination.
        - name: per_page
          in: query
          type: integer
          description: Number of log entries per page.
        - name: search
          in: query
          type: string
          description: Search query to filter logs.
    authentication:
      type: bearer
      token: '{{env.CLOUDFLARE_API_KEY}}'
  exposes:
  - type: rest
    namespace: ai-gateway-logs-rest
    port: 8080
    description: REST adapter for Cloudflare AI Gateway API — Logs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-id}/ai-gateway/gateways/{gateway-id}/logs
      name: accounts-account-id-ai-gateway-gateways-gateway-id-logs
      description: REST surface for accounts-account_id-ai-gateway-gateways-gateway_id-logs.
      operations:
      - method: GET
        name: listaigatewaylogs
        description: Cloudflare List Ai Gateway Logs
        call: ai-gateway-logs.listaigatewaylogs
        with:
          page: rest.page
          per_page: rest.per_page
          search: rest.search
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ai-gateway-logs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Cloudflare AI Gateway API — Logs. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: cloudflare-list-ai-gateway-logs
      description: Cloudflare List Ai Gateway Logs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ai-gateway-logs.listaigatewaylogs
      with:
        page: tools.page
        per_page: tools.per_page
        search: tools.search
      outputParameters:
      - type: object
        mapping: $.