Citrix · Capability

Citrix Cloud API — Service Principals

Citrix Cloud API — Service Principals. 4 operations. Lead operation: Citrix List service principals. Self-contained Naftiko capability covering one Citrix business surface.

Run with Naftiko CitrixService Principals

What You Can Do

GET
Listserviceprincipals — Citrix List service principals
/v1/serviceprincipals
POST
Createserviceprincipal — Citrix Create a service principal
/v1/serviceprincipals
GET
Getserviceprincipal — Citrix Get a service principal
/v1/serviceprincipals/{principalid}
DELETE
Deleteserviceprincipal — Citrix Delete a service principal
/v1/serviceprincipals/{principalid}

MCP Tools

citrix-list-service-principals

Citrix List service principals

read-only idempotent
citrix-create-service-principal

Citrix Create a service principal

citrix-get-service-principal

Citrix Get a service principal

read-only idempotent
citrix-delete-service-principal

Citrix Delete a service principal

idempotent

Capability Spec

cloud-service-principals.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Citrix Cloud API — Service Principals
  description: 'Citrix Cloud API — Service Principals. 4 operations. Lead operation: Citrix List service principals. Self-contained
    Naftiko capability covering one Citrix business surface.'
  tags:
  - Citrix
  - Service Principals
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CITRIX_API_KEY: CITRIX_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-service-principals
    baseUri: https://api.cloud.com
    description: Citrix Cloud API — Service Principals business capability. Self-contained, no shared references.
    resources:
    - name: serviceprincipals
      path: /serviceprincipals
      operations:
      - name: listserviceprincipals
        method: GET
        description: Citrix List service principals
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createserviceprincipal
        method: POST
        description: Citrix Create a service principal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: serviceprincipals-principalId
      path: /serviceprincipals/{principalId}
      operations:
      - name: getserviceprincipal
        method: GET
        description: Citrix Get a service principal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteserviceprincipal
        method: DELETE
        description: Citrix Delete a service principal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CITRIX_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-service-principals-rest
    port: 8080
    description: REST adapter for Citrix Cloud API — Service Principals. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/serviceprincipals
      name: serviceprincipals
      description: REST surface for serviceprincipals.
      operations:
      - method: GET
        name: listserviceprincipals
        description: Citrix List service principals
        call: cloud-service-principals.listserviceprincipals
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createserviceprincipal
        description: Citrix Create a service principal
        call: cloud-service-principals.createserviceprincipal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/{principalid}
      name: serviceprincipals-principalid
      description: REST surface for serviceprincipals-principalId.
      operations:
      - method: GET
        name: getserviceprincipal
        description: Citrix Get a service principal
        call: cloud-service-principals.getserviceprincipal
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteserviceprincipal
        description: Citrix Delete a service principal
        call: cloud-service-principals.deleteserviceprincipal
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-service-principals-mcp
    port: 9090
    transport: http
    description: MCP adapter for Citrix Cloud API — Service Principals. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: citrix-list-service-principals
      description: Citrix List service principals
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-service-principals.listserviceprincipals
      outputParameters:
      - type: object
        mapping: $.
    - name: citrix-create-service-principal
      description: Citrix Create a service principal
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-service-principals.createserviceprincipal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: citrix-get-service-principal
      description: Citrix Get a service principal
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-service-principals.getserviceprincipal
      outputParameters:
      - type: object
        mapping: $.
    - name: citrix-delete-service-principal
      description: Citrix Delete a service principal
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cloud-service-principals.deleteserviceprincipal
      outputParameters:
      - type: object
        mapping: $.