naftiko: 1.0.0-alpha2 info: label: Azure Policy REST API — Policy Definitions description: 'Azure Policy REST API — Policy Definitions. 6 operations. Lead operation: Azure Policy REST API List by subscription. Self-contained Naftiko capability covering one Microsoft Azure Policy business surface.' tags: - Microsoft Azure Policy - Policy Definitions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_AZURE_POLICY_API_KEY: MICROSOFT_AZURE_POLICY_API_KEY capability: consumes: - type: http namespace: microsoft-azure-policy-policy-definitions baseUri: https://management.azure.com description: Azure Policy REST API — Policy Definitions business capability. Self-contained, no shared references. resources: - name: subscriptions-subscriptionId-providers-Microsoft.Authorization-policyDefinitions path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions operations: - name: listpolicydefinitionsbysubscription method: GET description: Azure Policy REST API List by subscription outputRawFormat: json outputParameters: - name: result type: object value: $. - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyDefinitions operations: - name: listpolicydefinitionsbyresourcegroup method: GET description: Azure Policy REST API List by resource group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyDefinitions/{name} operations: - name: getpolicydefinitions method: GET description: Azure Policy REST API Get resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createorupdatepolicydefinitions method: PUT description: Azure Policy REST API Create or update resource outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: updatepolicydefinitions method: PATCH description: Azure Policy REST API Update resource outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletepolicydefinitions method: DELETE description: Azure Policy REST API Delete resource outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MICROSOFT_AZURE_POLICY_API_KEY}}' exposes: - type: rest namespace: microsoft-azure-policy-policy-definitions-rest port: 8080 description: REST adapter for Azure Policy REST API — Policy Definitions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/subscriptions/{subscriptionid}/providers/microsoft-authorization/policydefinitions name: subscriptions-subscriptionid-providers-microsoft-authorization-policydefinitions description: REST surface for subscriptions-subscriptionId-providers-Microsoft.Authorization-policyDefinitions. operations: - method: GET name: listpolicydefinitionsbysubscription description: Azure Policy REST API List by subscription call: microsoft-azure-policy-policy-definitions.listpolicydefinitionsbysubscription outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-authorization/policydefinitions name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: GET name: listpolicydefinitionsbyresourcegroup description: Azure Policy REST API List by resource group call: microsoft-azure-policy-policy-definitions.listpolicydefinitionsbyresourcegroup outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-authorization/policydefinitions/{name} name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: GET name: getpolicydefinitions description: Azure Policy REST API Get resource call: microsoft-azure-policy-policy-definitions.getpolicydefinitions outputParameters: - type: object mapping: $. - method: PUT name: createorupdatepolicydefinitions description: Azure Policy REST API Create or update resource call: microsoft-azure-policy-policy-definitions.createorupdatepolicydefinitions with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updatepolicydefinitions description: Azure Policy REST API Update resource call: microsoft-azure-policy-policy-definitions.updatepolicydefinitions with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletepolicydefinitions description: Azure Policy REST API Delete resource call: microsoft-azure-policy-policy-definitions.deletepolicydefinitions outputParameters: - type: object mapping: $. - type: mcp namespace: microsoft-azure-policy-policy-definitions-mcp port: 9090 transport: http description: MCP adapter for Azure Policy REST API — Policy Definitions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: azure-policy-rest-api-list description: Azure Policy REST API List by subscription hints: readOnly: true destructive: false idempotent: true call: microsoft-azure-policy-policy-definitions.listpolicydefinitionsbysubscription outputParameters: - type: object mapping: $. - name: azure-policy-rest-api-list-2 description: Azure Policy REST API List by resource group hints: readOnly: true destructive: false idempotent: true call: microsoft-azure-policy-policy-definitions.listpolicydefinitionsbyresourcegroup outputParameters: - type: object mapping: $. - name: azure-policy-rest-api-get description: Azure Policy REST API Get resource hints: readOnly: true destructive: false idempotent: true call: microsoft-azure-policy-policy-definitions.getpolicydefinitions outputParameters: - type: object mapping: $. - name: azure-policy-rest-api-create description: Azure Policy REST API Create or update resource hints: readOnly: false destructive: false idempotent: true call: microsoft-azure-policy-policy-definitions.createorupdatepolicydefinitions with: body: tools.body outputParameters: - type: object mapping: $. - name: azure-policy-rest-api-update description: Azure Policy REST API Update resource hints: readOnly: false destructive: false idempotent: true call: microsoft-azure-policy-policy-definitions.updatepolicydefinitions with: body: tools.body outputParameters: - type: object mapping: $. - name: azure-policy-rest-api-delete description: Azure Policy REST API Delete resource hints: readOnly: false destructive: true idempotent: true call: microsoft-azure-policy-policy-definitions.deletepolicydefinitions outputParameters: - type: object mapping: $.