Amazon CloudFront · Capability

Amazon CloudFront API — Functions

Amazon CloudFront API — Functions. 2 operations. Lead operation: Amazon CloudFront Create a CloudFront function. Self-contained Naftiko capability covering one Amazon Cloudfront business surface.

Run with Naftiko Amazon CloudfrontFunctions

What You Can Do

POST
Createfunction — Amazon CloudFront Create a CloudFront function
/v1/2020-05-31/function
GET
Listfunctions — Amazon CloudFront List CloudFront functions
/v1/2020-05-31/function

MCP Tools

amazon-cloudfront-create-cloudfront-function

Amazon CloudFront Create a CloudFront function

amazon-cloudfront-list-cloudfront-functions

Amazon CloudFront List CloudFront functions

read-only idempotent

Capability Spec

amazon-cloudfront-functions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon CloudFront API — Functions
  description: 'Amazon CloudFront API — Functions. 2 operations. Lead operation: Amazon CloudFront Create a CloudFront function.
    Self-contained Naftiko capability covering one Amazon Cloudfront business surface.'
  tags:
  - Amazon Cloudfront
  - Functions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_CLOUDFRONT_API_KEY: AMAZON_CLOUDFRONT_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-cloudfront-functions
    baseUri: https://cloudfront.amazonaws.com
    description: Amazon CloudFront API — Functions business capability. Self-contained, no shared references.
    resources:
    - name: 2020-05-31-function
      path: /2020-05-31/function
      operations:
      - name: createfunction
        method: POST
        description: Amazon CloudFront Create a CloudFront function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listfunctions
        method: GET
        description: Amazon CloudFront List CloudFront functions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Marker
          in: query
          type: string
          description: Use this to paginate results.
        - name: MaxItems
          in: query
          type: integer
          description: The maximum number of functions to return.
        - name: Stage
          in: query
          type: string
          description: The function stage to filter by.
  exposes:
  - type: rest
    namespace: amazon-cloudfront-functions-rest
    port: 8080
    description: REST adapter for Amazon CloudFront API — Functions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/2020-05-31/function
      name: 2020-05-31-function
      description: REST surface for 2020-05-31-function.
      operations:
      - method: POST
        name: createfunction
        description: Amazon CloudFront Create a CloudFront function
        call: amazon-cloudfront-functions.createfunction
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listfunctions
        description: Amazon CloudFront List CloudFront functions
        call: amazon-cloudfront-functions.listfunctions
        with:
          Marker: rest.Marker
          MaxItems: rest.MaxItems
          Stage: rest.Stage
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-cloudfront-functions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon CloudFront API — Functions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: amazon-cloudfront-create-cloudfront-function
      description: Amazon CloudFront Create a CloudFront function
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: amazon-cloudfront-functions.createfunction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-cloudfront-list-cloudfront-functions
      description: Amazon CloudFront List CloudFront functions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-cloudfront-functions.listfunctions
      with:
        Marker: tools.Marker
        MaxItems: tools.MaxItems
        Stage: tools.Stage
      outputParameters:
      - type: object
        mapping: $.