naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Domains — Domains.domain description: 'Microsoft Graph Domains — Domains.domain. 7 operations. Lead operation: Microsoft Graph List domains. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - Domains.domain 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: domains-domains-domain baseUri: '' description: Microsoft Graph Domains — Domains.domain business capability. Self-contained, no shared references. resources: - name: domains path: /domains operations: - name: domainsdomainlistdomain method: GET description: Microsoft Graph List domains outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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: domainsdomaincreatedomain method: POST description: Microsoft Graph Create domain outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: domains-$count path: /domains/$count operations: - name: domainsgetcount3c31 method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: domains-domain-id path: /domains/{domain-id} operations: - name: domainsdomaingetdomain method: GET description: Microsoft Graph Get domain 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: domainsdomainupdatedomain method: PATCH description: Microsoft Graph Update domain outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: domainsdomaindeletedomain method: DELETE description: Microsoft Graph Delete domain outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: domains-domain-id-rootDomain path: /domains/{domain-id}/rootDomain operations: - name: domainsgetrootdomain method: GET description: Microsoft Graph Get rootDomain 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 exposes: - type: rest namespace: domains-domains-domain-rest port: 8080 description: REST adapter for Microsoft Graph Domains — Domains.domain. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/domains name: domains description: REST surface for domains. operations: - method: GET name: domainsdomainlistdomain description: Microsoft Graph List domains call: domains-domains-domain.domainsdomainlistdomain with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: domainsdomaincreatedomain description: Microsoft Graph Create domain call: domains-domains-domain.domainsdomaincreatedomain with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/domains/count name: domains-count description: REST surface for domains-$count. operations: - method: GET name: domainsgetcount3c31 description: Microsoft Graph Get the number of the resource call: domains-domains-domain.domainsgetcount3c31 outputParameters: - type: object mapping: $. - path: /v1/domains/{domain-id} name: domains-domain-id description: REST surface for domains-domain-id. operations: - method: GET name: domainsdomaingetdomain description: Microsoft Graph Get domain call: domains-domains-domain.domainsdomaingetdomain with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: domainsdomainupdatedomain description: Microsoft Graph Update domain call: domains-domains-domain.domainsdomainupdatedomain with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: domainsdomaindeletedomain description: Microsoft Graph Delete domain call: domains-domains-domain.domainsdomaindeletedomain with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/domains/{domain-id}/rootdomain name: domains-domain-id-rootdomain description: REST surface for domains-domain-id-rootDomain. operations: - method: GET name: domainsgetrootdomain description: Microsoft Graph Get rootDomain call: domains-domains-domain.domainsgetrootdomain with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - type: mcp namespace: domains-domains-domain-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Domains — Domains.domain. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-list-domains description: Microsoft Graph List domains hints: readOnly: true destructive: false idempotent: true call: domains-domains-domain.domainsdomainlistdomain with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-create-domain description: Microsoft Graph Create domain hints: readOnly: false destructive: false idempotent: false call: domains-domains-domain.domainsdomaincreatedomain with: body: tools.body 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: domains-domains-domain.domainsgetcount3c31 outputParameters: - type: object mapping: $. - name: microsoft-graph-get-domain description: Microsoft Graph Get domain hints: readOnly: true destructive: false idempotent: true call: domains-domains-domain.domainsdomaingetdomain with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-domain description: Microsoft Graph Update domain hints: readOnly: false destructive: false idempotent: true call: domains-domains-domain.domainsdomainupdatedomain with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-domain description: Microsoft Graph Delete domain hints: readOnly: false destructive: true idempotent: true call: domains-domains-domain.domainsdomaindeletedomain with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-get-rootdomain description: Microsoft Graph Get rootDomain hints: readOnly: true destructive: false idempotent: true call: domains-domains-domain.domainsgetrootdomain with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $.