naftiko: 1.0.0-alpha2 info: label: Azure Event Grid REST API — Topics description: 'Azure Event Grid REST API — Topics. 6 operations. Lead operation: Azure Event Grid REST API List by subscription. Self-contained Naftiko capability covering one Microsoft Azure Event Grid business surface.' tags: - Microsoft Azure Event Grid - Topics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_AZURE_EVENT_GRID_API_KEY: MICROSOFT_AZURE_EVENT_GRID_API_KEY capability: consumes: - type: http namespace: microsoft-azure-event-grid-topics baseUri: https://management.azure.com description: Azure Event Grid REST API — Topics business capability. Self-contained, no shared references. resources: - name: subscriptions-subscriptionId-providers-Microsoft.EventGrid-topics path: /subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics operations: - name: listtopicsbysubscription method: GET description: Azure Event Grid 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.EventGrid/topics operations: - name: listtopicsbyresourcegroup method: GET description: Azure Event Grid 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.EventGrid/topics/{name} operations: - name: gettopics method: GET description: Azure Event Grid REST API Get resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createorupdatetopics method: PUT description: Azure Event Grid 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: updatetopics method: PATCH description: Azure Event Grid 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: deletetopics method: DELETE description: Azure Event Grid REST API Delete resource outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MICROSOFT_AZURE_EVENT_GRID_API_KEY}}' exposes: - type: rest namespace: microsoft-azure-event-grid-topics-rest port: 8080 description: REST adapter for Azure Event Grid REST API — Topics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/subscriptions/{subscriptionid}/providers/microsoft-eventgrid/topics name: subscriptions-subscriptionid-providers-microsoft-eventgrid-topics description: REST surface for subscriptions-subscriptionId-providers-Microsoft.EventGrid-topics. operations: - method: GET name: listtopicsbysubscription description: Azure Event Grid REST API List by subscription call: microsoft-azure-event-grid-topics.listtopicsbysubscription outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-eventgrid/topics name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: GET name: listtopicsbyresourcegroup description: Azure Event Grid REST API List by resource group call: microsoft-azure-event-grid-topics.listtopicsbyresourcegroup outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-eventgrid/topics/{name} name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: GET name: gettopics description: Azure Event Grid REST API Get resource call: microsoft-azure-event-grid-topics.gettopics outputParameters: - type: object mapping: $. - method: PUT name: createorupdatetopics description: Azure Event Grid REST API Create or update resource call: microsoft-azure-event-grid-topics.createorupdatetopics with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updatetopics description: Azure Event Grid REST API Update resource call: microsoft-azure-event-grid-topics.updatetopics with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletetopics description: Azure Event Grid REST API Delete resource call: microsoft-azure-event-grid-topics.deletetopics outputParameters: - type: object mapping: $. - type: mcp namespace: microsoft-azure-event-grid-topics-mcp port: 9090 transport: http description: MCP adapter for Azure Event Grid REST API — Topics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: azure-event-grid-rest-api description: Azure Event Grid REST API List by subscription hints: readOnly: true destructive: false idempotent: true call: microsoft-azure-event-grid-topics.listtopicsbysubscription outputParameters: - type: object mapping: $. - name: azure-event-grid-rest-api-2 description: Azure Event Grid REST API List by resource group hints: readOnly: true destructive: false idempotent: true call: microsoft-azure-event-grid-topics.listtopicsbyresourcegroup outputParameters: - type: object mapping: $. - name: azure-event-grid-rest-api-3 description: Azure Event Grid REST API Get resource hints: readOnly: true destructive: false idempotent: true call: microsoft-azure-event-grid-topics.gettopics outputParameters: - type: object mapping: $. - name: azure-event-grid-rest-api-4 description: Azure Event Grid REST API Create or update resource hints: readOnly: false destructive: false idempotent: true call: microsoft-azure-event-grid-topics.createorupdatetopics with: body: tools.body outputParameters: - type: object mapping: $. - name: azure-event-grid-rest-api-5 description: Azure Event Grid REST API Update resource hints: readOnly: false destructive: false idempotent: true call: microsoft-azure-event-grid-topics.updatetopics with: body: tools.body outputParameters: - type: object mapping: $. - name: azure-event-grid-rest-api-6 description: Azure Event Grid REST API Delete resource hints: readOnly: false destructive: true idempotent: true call: microsoft-azure-event-grid-topics.deletetopics outputParameters: - type: object mapping: $.