naftiko: 1.0.0-alpha2 info: label: Azure Log Analytics Management API — Workspaces description: 'Azure Log Analytics Management API — Workspaces. 6 operations. Lead operation: Azure Log Analytics List Workspaces. Self-contained Naftiko capability covering one Azure Log Analytics business surface.' tags: - Azure Log Analytics - Workspaces created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AZURE_LOG_ANALYTICS_API_KEY: AZURE_LOG_ANALYTICS_API_KEY capability: consumes: - type: http namespace: management-workspaces baseUri: https://management.azure.com description: Azure Log Analytics Management API — Workspaces business capability. Self-contained, no shared references. resources: - name: subscriptions-subscriptionId-providers-Microsoft.OperationalInsights-workspaces path: /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces operations: - name: listworkspaces method: GET description: Azure Log Analytics List Workspaces outputRawFormat: json outputParameters: - name: result type: object value: $. - name: subscriptions-subscriptionId-resourcegroups-resourceGroupName-providers-Microsof path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces operations: - name: listworkspacesbyresourcegroup method: GET description: Azure Log Analytics List Workspaces 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.OperationalInsights/workspaces/{workspaceName} operations: - name: getworkspace method: GET description: Azure Log Analytics Get Workspace outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createorupdateworkspace method: PUT description: Azure Log Analytics Create or Update Workspace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: updateworkspace method: PATCH description: Azure Log Analytics Update Workspace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteworkspace method: DELETE description: Azure Log Analytics Delete Workspace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: force in: query type: boolean description: Deletes the workspace without the recovery option. authentication: type: bearer token: '{{env.AZURE_LOG_ANALYTICS_API_KEY}}' exposes: - type: rest namespace: management-workspaces-rest port: 8080 description: REST adapter for Azure Log Analytics Management API — Workspaces. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/subscriptions/{subscriptionid}/providers/microsoft-operationalinsights/workspaces name: subscriptions-subscriptionid-providers-microsoft-operationalinsights-workspaces description: REST surface for subscriptions-subscriptionId-providers-Microsoft.OperationalInsights-workspaces. operations: - method: GET name: listworkspaces description: Azure Log Analytics List Workspaces call: management-workspaces.listworkspaces outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-operationalinsights/workspaces name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourcegroups-resourceGroupName-providers-Microsof. operations: - method: GET name: listworkspacesbyresourcegroup description: Azure Log Analytics List Workspaces by Resource Group call: management-workspaces.listworkspacesbyresourcegroup outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-operationalinsights/workspaces/{workspacename} name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourcegroups-resourceGroupName-providers-Microsof. operations: - method: GET name: getworkspace description: Azure Log Analytics Get Workspace call: management-workspaces.getworkspace outputParameters: - type: object mapping: $. - method: PUT name: createorupdateworkspace description: Azure Log Analytics Create or Update Workspace call: management-workspaces.createorupdateworkspace with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updateworkspace description: Azure Log Analytics Update Workspace call: management-workspaces.updateworkspace with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteworkspace description: Azure Log Analytics Delete Workspace call: management-workspaces.deleteworkspace with: force: rest.force outputParameters: - type: object mapping: $. - type: mcp namespace: management-workspaces-mcp port: 9090 transport: http description: MCP adapter for Azure Log Analytics Management API — Workspaces. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: azure-log-analytics-list-workspaces description: Azure Log Analytics List Workspaces hints: readOnly: true destructive: false idempotent: true call: management-workspaces.listworkspaces outputParameters: - type: object mapping: $. - name: azure-log-analytics-list-workspaces-2 description: Azure Log Analytics List Workspaces by Resource Group hints: readOnly: true destructive: false idempotent: true call: management-workspaces.listworkspacesbyresourcegroup outputParameters: - type: object mapping: $. - name: azure-log-analytics-get-workspace description: Azure Log Analytics Get Workspace hints: readOnly: true destructive: false idempotent: true call: management-workspaces.getworkspace outputParameters: - type: object mapping: $. - name: azure-log-analytics-create-update description: Azure Log Analytics Create or Update Workspace hints: readOnly: false destructive: false idempotent: true call: management-workspaces.createorupdateworkspace with: body: tools.body outputParameters: - type: object mapping: $. - name: azure-log-analytics-update-workspace description: Azure Log Analytics Update Workspace hints: readOnly: false destructive: false idempotent: true call: management-workspaces.updateworkspace with: body: tools.body outputParameters: - type: object mapping: $. - name: azure-log-analytics-delete-workspace description: Azure Log Analytics Delete Workspace hints: readOnly: false destructive: true idempotent: true call: management-workspaces.deleteworkspace with: force: tools.force outputParameters: - type: object mapping: $.