Argo · Capability

Argo CD API — Applications

Argo CD API — Applications. 7 operations. Lead operation: Argo CD Argo List Applications. Self-contained Naftiko capability covering one Argo business surface.

Run with Naftiko ArgoApplications

What You Can Do

GET
Listapplications — Argo CD Argo List Applications
/v1/applications
POST
Createapplication — Argo CD Argo Create an Application
/v1/applications
GET
Getapplication — Argo CD Argo Get an Application
/v1/applications/{name}
PUT
Updateapplication — Argo CD Argo Update an Application
/v1/applications/{name}
DELETE
Deleteapplication — Argo CD Argo Delete an Application
/v1/applications/{name}
POST
Rollbackapplication — Argo CD Argo Rollback an Application
/v1/applications/{name}/rollback
POST
Syncapplication — Argo CD Argo Sync an Application
/v1/applications/{name}/sync

MCP Tools

argo-cd-argo-list-applications

Argo CD Argo List Applications

read-only idempotent
argo-cd-argo-create-application

Argo CD Argo Create an Application

argo-cd-argo-get-application

Argo CD Argo Get an Application

read-only idempotent
argo-cd-argo-update-application

Argo CD Argo Update an Application

idempotent
argo-cd-argo-delete-application

Argo CD Argo Delete an Application

idempotent
argo-cd-argo-rollback-application

Argo CD Argo Rollback an Application

argo-cd-argo-sync-application

Argo CD Argo Sync an Application

Capability Spec

cd-applications.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Argo CD API — Applications
  description: 'Argo CD API — Applications. 7 operations. Lead operation: Argo CD Argo List Applications. Self-contained Naftiko
    capability covering one Argo business surface.'
  tags:
  - Argo
  - Applications
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ARGO_API_KEY: ARGO_API_KEY
capability:
  consumes:
  - type: http
    namespace: cd-applications
    baseUri: https://localhost/api/v1
    description: Argo CD API — Applications business capability. Self-contained, no shared references.
    resources:
    - name: applications
      path: /applications
      operations:
      - name: listapplications
        method: GET
        description: Argo CD Argo List Applications
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: query
          type: string
          description: Filter applications by name.
        - name: namespace
          in: query
          type: string
          description: Filter applications by destination namespace.
        - name: appNamespace
          in: query
          type: string
          description: The application namespace to filter by.
      - name: createapplication
        method: POST
        description: Argo CD Argo Create an Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: upsert
          in: query
          type: boolean
          description: If true, perform an upsert rather than a create, updating the application if it already exists.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: applications-name
      path: /applications/{name}
      operations:
      - name: getapplication
        method: GET
        description: Argo CD Argo Get an Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: appNamespace
          in: query
          type: string
          description: Application namespace.
      - name: updateapplication
        method: PUT
        description: Argo CD Argo Update an Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteapplication
        method: DELETE
        description: Argo CD Argo Delete an Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cascade
          in: query
          type: boolean
          description: Cascade deletion to managed Kubernetes resources.
        - name: propagationPolicy
          in: query
          type: string
          description: Kubernetes resource deletion propagation policy (foreground, background, orphan).
    - name: applications-name-rollback
      path: /applications/{name}/rollback
      operations:
      - name: rollbackapplication
        method: POST
        description: Argo CD Argo Rollback an Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: applications-name-sync
      path: /applications/{name}/sync
      operations:
      - name: syncapplication
        method: POST
        description: Argo CD Argo Sync an Application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.ARGO_API_KEY}}'
  exposes:
  - type: rest
    namespace: cd-applications-rest
    port: 8080
    description: REST adapter for Argo CD API — Applications. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/applications
      name: applications
      description: REST surface for applications.
      operations:
      - method: GET
        name: listapplications
        description: Argo CD Argo List Applications
        call: cd-applications.listapplications
        with:
          name: rest.name
          namespace: rest.namespace
          appNamespace: rest.appNamespace
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapplication
        description: Argo CD Argo Create an Application
        call: cd-applications.createapplication
        with:
          upsert: rest.upsert
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/applications/{name}
      name: applications-name
      description: REST surface for applications-name.
      operations:
      - method: GET
        name: getapplication
        description: Argo CD Argo Get an Application
        call: cd-applications.getapplication
        with:
          appNamespace: rest.appNamespace
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateapplication
        description: Argo CD Argo Update an Application
        call: cd-applications.updateapplication
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapplication
        description: Argo CD Argo Delete an Application
        call: cd-applications.deleteapplication
        with:
          cascade: rest.cascade
          propagationPolicy: rest.propagationPolicy
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/applications/{name}/rollback
      name: applications-name-rollback
      description: REST surface for applications-name-rollback.
      operations:
      - method: POST
        name: rollbackapplication
        description: Argo CD Argo Rollback an Application
        call: cd-applications.rollbackapplication
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/applications/{name}/sync
      name: applications-name-sync
      description: REST surface for applications-name-sync.
      operations:
      - method: POST
        name: syncapplication
        description: Argo CD Argo Sync an Application
        call: cd-applications.syncapplication
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cd-applications-mcp
    port: 9090
    transport: http
    description: MCP adapter for Argo CD API — Applications. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: argo-cd-argo-list-applications
      description: Argo CD Argo List Applications
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cd-applications.listapplications
      with:
        name: tools.name
        namespace: tools.namespace
        appNamespace: tools.appNamespace
      outputParameters:
      - type: object
        mapping: $.
    - name: argo-cd-argo-create-application
      description: Argo CD Argo Create an Application
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cd-applications.createapplication
      with:
        upsert: tools.upsert
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: argo-cd-argo-get-application
      description: Argo CD Argo Get an Application
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cd-applications.getapplication
      with:
        appNamespace: tools.appNamespace
      outputParameters:
      - type: object
        mapping: $.
    - name: argo-cd-argo-update-application
      description: Argo CD Argo Update an Application
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cd-applications.updateapplication
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: argo-cd-argo-delete-application
      description: Argo CD Argo Delete an Application
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cd-applications.deleteapplication
      with:
        cascade: tools.cascade
        propagationPolicy: tools.propagationPolicy
      outputParameters:
      - type: object
        mapping: $.
    - name: argo-cd-argo-rollback-application
      description: Argo CD Argo Rollback an Application
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cd-applications.rollbackapplication
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: argo-cd-argo-sync-application
      description: Argo CD Argo Sync an Application
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cd-applications.syncapplication
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.