Microsoft Graph · Capability

Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.servicePrincipal

Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.servicePrincipal. 9 operations. Lead operation: Microsoft Graph List servicePrincipals. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft GraphservicePrincipals.servicePrincipal

What You Can Do

GET
Serviceprincipalsserviceprincipallistserviceprincipal — Microsoft Graph List servicePrincipals
/v1/serviceprincipals
POST
Serviceprincipalsserviceprincipalcreateserviceprincipal — Microsoft Graph Create servicePrincipal
/v1/serviceprincipals
GET
Serviceprincipalsserviceprincipalgetserviceprincipalbyappid — Microsoft Graph Get servicePrincipal
/v1/serviceprincipals-appid-appid
PATCH
Serviceprincipalsserviceprincipalupdateserviceprincipalbyappid — Microsoft Graph Upsert servicePrincipal
/v1/serviceprincipals-appid-appid
DELETE
Serviceprincipalsserviceprincipaldeleteserviceprincipalbyappid — Microsoft Graph Delete servicePrincipal
/v1/serviceprincipals-appid-appid
GET
Serviceprincipalsgetcountda6d — Microsoft Graph Get the number of the resource
/v1/serviceprincipals/count
GET
Serviceprincipalsserviceprincipalgetserviceprincipal — Microsoft Graph Get servicePrincipal
/v1/serviceprincipals/{serviceprincipal-id}
PATCH
Serviceprincipalsserviceprincipalupdateserviceprincipal — Microsoft Graph Upsert servicePrincipal
/v1/serviceprincipals/{serviceprincipal-id}
DELETE
Serviceprincipalsserviceprincipaldeleteserviceprincipal — Microsoft Graph Delete servicePrincipal
/v1/serviceprincipals/{serviceprincipal-id}

MCP Tools

microsoft-graph-list-serviceprincipals

Microsoft Graph List servicePrincipals

read-only idempotent
microsoft-graph-create-serviceprincipal

Microsoft Graph Create servicePrincipal

microsoft-graph-get-serviceprincipal

Microsoft Graph Get servicePrincipal

read-only idempotent
microsoft-graph-upsert-serviceprincipal

Microsoft Graph Upsert servicePrincipal

idempotent
microsoft-graph-delete-serviceprincipal

Microsoft Graph Delete servicePrincipal

idempotent
microsoft-graph-get-number-resource

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-serviceprincipal-2

Microsoft Graph Get servicePrincipal

read-only idempotent
microsoft-graph-upsert-serviceprincipal-2

Microsoft Graph Upsert servicePrincipal

idempotent
microsoft-graph-delete-serviceprincipal-2

Microsoft Graph Delete servicePrincipal

idempotent

Capability Spec

microsoft-graph-serviceprincipals-serviceprincipal.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.servicePrincipal
  description: 'Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.servicePrincipal. 9 operations.
    Lead operation: Microsoft Graph List servicePrincipals. Self-contained Naftiko capability covering one Microsoft Graph
    business surface.'
  tags:
  - Microsoft Graph
  - servicePrincipals.servicePrincipal
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_GRAPH_API_KEY: MICROSOFT_GRAPH_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-graph-serviceprincipals-serviceprincipal
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.servicePrincipal business
      capability. Self-contained, no shared references.
    resources:
    - name: servicePrincipals
      path: /servicePrincipals
      operations:
      - name: serviceprincipalsserviceprincipallistserviceprincipal
        method: GET
        description: Microsoft Graph List servicePrincipals
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
        - name: $orderby
          in: query
          type: array
          description: Order items by property values
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
      - name: serviceprincipalsserviceprincipalcreateserviceprincipal
        method: POST
        description: Microsoft Graph Create servicePrincipal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: servicePrincipals(appId='{appId}')
      path: /servicePrincipals(appId='{appId}')
      operations:
      - name: serviceprincipalsserviceprincipalgetserviceprincipalbyappid
        method: GET
        description: Microsoft Graph Get servicePrincipal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
      - name: serviceprincipalsserviceprincipalupdateserviceprincipalbyappid
        method: PATCH
        description: Microsoft Graph Upsert servicePrincipal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: serviceprincipalsserviceprincipaldeleteserviceprincipalbyappid
        method: DELETE
        description: Microsoft Graph Delete servicePrincipal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
    - name: servicePrincipals-$count
      path: /servicePrincipals/$count
      operations:
      - name: serviceprincipalsgetcountda6d
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ConsistencyLevel
          in: header
          type: string
          description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries'
    - name: servicePrincipals-servicePrincipal-id
      path: /servicePrincipals/{servicePrincipal-id}
      operations:
      - name: serviceprincipalsserviceprincipalgetserviceprincipal
        method: GET
        description: Microsoft Graph Get servicePrincipal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $select
          in: query
          type: array
          description: Select properties to be returned
        - name: $expand
          in: query
          type: array
          description: Expand related entities
      - name: serviceprincipalsserviceprincipalupdateserviceprincipal
        method: PATCH
        description: Microsoft Graph Upsert servicePrincipal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: serviceprincipalsserviceprincipaldeleteserviceprincipal
        method: DELETE
        description: Microsoft Graph Delete servicePrincipal
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
  exposes:
  - type: rest
    namespace: microsoft-graph-serviceprincipals-serviceprincipal-rest
    port: 8080
    description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.servicePrincipal.
      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: serviceprincipalsserviceprincipallistserviceprincipal
        description: Microsoft Graph List servicePrincipals
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipallistserviceprincipal
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: serviceprincipalsserviceprincipalcreateserviceprincipal
        description: Microsoft Graph Create servicePrincipal
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalcreateserviceprincipal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals-appid-appid
      name: serviceprincipals-appid-appid
      description: REST surface for servicePrincipals(appId='{appId}').
      operations:
      - method: GET
        name: serviceprincipalsserviceprincipalgetserviceprincipalbyappid
        description: Microsoft Graph Get servicePrincipal
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalgetserviceprincipalbyappid
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: serviceprincipalsserviceprincipalupdateserviceprincipalbyappid
        description: Microsoft Graph Upsert servicePrincipal
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalupdateserviceprincipalbyappid
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: serviceprincipalsserviceprincipaldeleteserviceprincipalbyappid
        description: Microsoft Graph Delete servicePrincipal
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipaldeleteserviceprincipalbyappid
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/count
      name: serviceprincipals-count
      description: REST surface for servicePrincipals-$count.
      operations:
      - method: GET
        name: serviceprincipalsgetcountda6d
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsgetcountda6d
        with:
          ConsistencyLevel: rest.ConsistencyLevel
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/serviceprincipals/{serviceprincipal-id}
      name: serviceprincipals-serviceprincipal-id
      description: REST surface for servicePrincipals-servicePrincipal-id.
      operations:
      - method: GET
        name: serviceprincipalsserviceprincipalgetserviceprincipal
        description: Microsoft Graph Get servicePrincipal
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalgetserviceprincipal
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: serviceprincipalsserviceprincipalupdateserviceprincipal
        description: Microsoft Graph Upsert servicePrincipal
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalupdateserviceprincipal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: serviceprincipalsserviceprincipaldeleteserviceprincipal
        description: Microsoft Graph Delete servicePrincipal
        call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipaldeleteserviceprincipal
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-serviceprincipals-serviceprincipal-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — servicePrincipals.servicePrincipal.
      One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-graph-list-serviceprincipals
      description: Microsoft Graph List servicePrincipals
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipallistserviceprincipal
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-create-serviceprincipal
      description: Microsoft Graph Create servicePrincipal
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalcreateserviceprincipal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-serviceprincipal
      description: Microsoft Graph Get servicePrincipal
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalgetserviceprincipalbyappid
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-upsert-serviceprincipal
      description: Microsoft Graph Upsert servicePrincipal
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalupdateserviceprincipalbyappid
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-serviceprincipal
      description: Microsoft Graph Delete servicePrincipal
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipaldeleteserviceprincipalbyappid
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-number-resource
      description: Microsoft Graph Get the number of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsgetcountda6d
      with:
        ConsistencyLevel: tools.ConsistencyLevel
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-serviceprincipal-2
      description: Microsoft Graph Get servicePrincipal
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalgetserviceprincipal
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-upsert-serviceprincipal-2
      description: Microsoft Graph Upsert servicePrincipal
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalupdateserviceprincipal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-serviceprincipal-2
      description: Microsoft Graph Delete servicePrincipal
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipaldeleteserviceprincipal
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.