naftiko: 1.0.0-alpha2 info: label: Microsoft Entra ID API — Service Principals description: 'Microsoft Entra ID API — Service Principals. 2 operations. Lead operation: Microsoft List service principals. Self-contained Naftiko capability covering one Microsoft business surface.' tags: - Microsoft - Service Principals created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_API_KEY: MICROSOFT_API_KEY capability: consumes: - type: http namespace: entra-id-service-principals baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Entra ID API — Service Principals business capability. Self-contained, no shared references. resources: - name: servicePrincipals path: /servicePrincipals operations: - name: listserviceprincipals method: GET description: Microsoft List service principals outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createserviceprincipal method: POST description: Microsoft 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 authentication: type: bearer token: '{{env.MICROSOFT_API_KEY}}' exposes: - type: rest namespace: entra-id-service-principals-rest port: 8080 description: REST adapter for Microsoft Entra ID 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: Microsoft List service principals call: entra-id-service-principals.listserviceprincipals outputParameters: - type: object mapping: $. - method: POST name: createserviceprincipal description: Microsoft Create a service principal call: entra-id-service-principals.createserviceprincipal with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: entra-id-service-principals-mcp port: 9090 transport: http description: MCP adapter for Microsoft Entra ID API — Service Principals. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-list-service-principals description: Microsoft List service principals hints: readOnly: true destructive: false idempotent: true call: entra-id-service-principals.listserviceprincipals outputParameters: - type: object mapping: $. - name: microsoft-create-service-principal description: Microsoft Create a service principal hints: readOnly: false destructive: false idempotent: false call: entra-id-service-principals.createserviceprincipal with: body: tools.body outputParameters: - type: object mapping: $.