naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Serviceprincipals — servicePrincipals.servicePrincipal description: 'Microsoft Graph Serviceprincipals — 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: serviceprincipals-serviceprincipals-serviceprincipal baseUri: '' description: Microsoft Graph Serviceprincipals — 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: serviceprincipals-serviceprincipals-serviceprincipal-rest port: 8080 description: REST adapter for Microsoft Graph Serviceprincipals — 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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalgetserviceprincipalbyappid with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: serviceprincipalsserviceprincipalupdateserviceprincipalbyappid description: Microsoft Graph Upsert servicePrincipal call: serviceprincipals-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalupdateserviceprincipalbyappid with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: serviceprincipalsserviceprincipaldeleteserviceprincipalbyappid description: Microsoft Graph Delete servicePrincipal call: serviceprincipals-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: serviceprincipals-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: serviceprincipals-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalgetserviceprincipal with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: serviceprincipalsserviceprincipalupdateserviceprincipal description: Microsoft Graph Upsert servicePrincipal call: serviceprincipals-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipalupdateserviceprincipal with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: serviceprincipalsserviceprincipaldeleteserviceprincipal description: Microsoft Graph Delete servicePrincipal call: serviceprincipals-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipaldeleteserviceprincipal with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - type: mcp namespace: serviceprincipals-serviceprincipals-serviceprincipal-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Serviceprincipals — 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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-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: serviceprincipals-serviceprincipals-serviceprincipal.serviceprincipalsserviceprincipaldeleteserviceprincipal with: If-Match: tools.If-Match outputParameters: - type: object mapping: $.