naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Directory — directory.companySubscription description: 'Microsoft Graph Directory — directory.companySubscription. 9 operations. Lead operation: Microsoft Graph List subscriptions. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - directory.companySubscription 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: directory-directory-companysubscription baseUri: '' description: Microsoft Graph Directory — directory.companySubscription business capability. Self-contained, no shared references. resources: - name: directory-subscriptions path: /directory/subscriptions operations: - name: directorylistsubscriptions method: GET description: Microsoft Graph List subscriptions 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: directorycreatesubscriptions method: POST description: Microsoft Graph Create new navigation property to subscriptions for directory outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: directory-subscriptions(commerceSubscriptionId='{commerceSubscriptionId}') path: /directory/subscriptions(commerceSubscriptionId='{commerceSubscriptionId}') operations: - name: directorysubscriptionsgetbycommercesubscriptionid method: GET description: Microsoft Graph Get companySubscription 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: directorysubscriptionsupdatebycommercesubscriptionid method: PATCH description: Microsoft Graph Update the navigation property subscriptions in directory outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: directorysubscriptionsdeletebycommercesubscriptionid method: DELETE description: Microsoft Graph Delete navigation property subscriptions for directory outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: directory-subscriptions-$count path: /directory/subscriptions/$count operations: - name: directorysubscriptionsgetcount06e4 method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: directory-subscriptions-companySubscription-id path: /directory/subscriptions/{companySubscription-id} operations: - name: directorygetsubscriptions method: GET description: Microsoft Graph Get companySubscription 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: directoryupdatesubscriptions method: PATCH description: Microsoft Graph Update the navigation property subscriptions in directory outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: directorydeletesubscriptions method: DELETE description: Microsoft Graph Delete navigation property subscriptions for directory outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag exposes: - type: rest namespace: directory-directory-companysubscription-rest port: 8080 description: REST adapter for Microsoft Graph Directory — directory.companySubscription. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/directory/subscriptions name: directory-subscriptions description: REST surface for directory-subscriptions. operations: - method: GET name: directorylistsubscriptions description: Microsoft Graph List subscriptions call: directory-directory-companysubscription.directorylistsubscriptions with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: directorycreatesubscriptions description: Microsoft Graph Create new navigation property to subscriptions for directory call: directory-directory-companysubscription.directorycreatesubscriptions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/directory/subscriptions-commercesubscriptionid-commercesubscriptionid name: directory-subscriptions-commercesubscriptionid-commercesubscriptionid description: REST surface for directory-subscriptions(commerceSubscriptionId='{commerceSubscriptionId}'). operations: - method: GET name: directorysubscriptionsgetbycommercesubscriptionid description: Microsoft Graph Get companySubscription call: directory-directory-companysubscription.directorysubscriptionsgetbycommercesubscriptionid with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: directorysubscriptionsupdatebycommercesubscriptionid description: Microsoft Graph Update the navigation property subscriptions in directory call: directory-directory-companysubscription.directorysubscriptionsupdatebycommercesubscriptionid with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: directorysubscriptionsdeletebycommercesubscriptionid description: Microsoft Graph Delete navigation property subscriptions for directory call: directory-directory-companysubscription.directorysubscriptionsdeletebycommercesubscriptionid with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/directory/subscriptions/count name: directory-subscriptions-count description: REST surface for directory-subscriptions-$count. operations: - method: GET name: directorysubscriptionsgetcount06e4 description: Microsoft Graph Get the number of the resource call: directory-directory-companysubscription.directorysubscriptionsgetcount06e4 outputParameters: - type: object mapping: $. - path: /v1/directory/subscriptions/{companysubscription-id} name: directory-subscriptions-companysubscription-id description: REST surface for directory-subscriptions-companySubscription-id. operations: - method: GET name: directorygetsubscriptions description: Microsoft Graph Get companySubscription call: directory-directory-companysubscription.directorygetsubscriptions with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: directoryupdatesubscriptions description: Microsoft Graph Update the navigation property subscriptions in directory call: directory-directory-companysubscription.directoryupdatesubscriptions with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: directorydeletesubscriptions description: Microsoft Graph Delete navigation property subscriptions for directory call: directory-directory-companysubscription.directorydeletesubscriptions with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - type: mcp namespace: directory-directory-companysubscription-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Directory — directory.companySubscription. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-list-subscriptions description: Microsoft Graph List subscriptions hints: readOnly: true destructive: false idempotent: true call: directory-directory-companysubscription.directorylistsubscriptions with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-create-new-navigation description: Microsoft Graph Create new navigation property to subscriptions for directory hints: readOnly: false destructive: false idempotent: false call: directory-directory-companysubscription.directorycreatesubscriptions with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-get-companysubscription description: Microsoft Graph Get companySubscription hints: readOnly: true destructive: false idempotent: true call: directory-directory-companysubscription.directorysubscriptionsgetbycommercesubscriptionid with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property description: Microsoft Graph Update the navigation property subscriptions in directory hints: readOnly: false destructive: false idempotent: true call: directory-directory-companysubscription.directorysubscriptionsupdatebycommercesubscriptionid with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-navigation-property description: Microsoft Graph Delete navigation property subscriptions for directory hints: readOnly: false destructive: true idempotent: true call: directory-directory-companysubscription.directorysubscriptionsdeletebycommercesubscriptionid 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: directory-directory-companysubscription.directorysubscriptionsgetcount06e4 outputParameters: - type: object mapping: $. - name: microsoft-graph-get-companysubscription-2 description: Microsoft Graph Get companySubscription hints: readOnly: true destructive: false idempotent: true call: directory-directory-companysubscription.directorygetsubscriptions with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property-2 description: Microsoft Graph Update the navigation property subscriptions in directory hints: readOnly: false destructive: false idempotent: true call: directory-directory-companysubscription.directoryupdatesubscriptions with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-navigation-property-2 description: Microsoft Graph Delete navigation property subscriptions for directory hints: readOnly: false destructive: true idempotent: true call: directory-directory-companysubscription.directorydeletesubscriptions with: If-Match: tools.If-Match outputParameters: - type: object mapping: $.