naftiko: 1.0.0-alpha2 info: label: Microsoft Bicep Template Specs API — Template Specs description: 'Microsoft Bicep Template Specs API — Template Specs. 6 operations. Lead operation: Microsoft Bicep List Template Specs by subscription. Self-contained Naftiko capability covering one Microsoft Bicep business surface.' tags: - Microsoft Bicep - Template Specs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_BICEP_API_KEY: MICROSOFT_BICEP_API_KEY capability: consumes: - type: http namespace: template-specs-template-specs baseUri: https://management.azure.com description: Microsoft Bicep Template Specs API — Template Specs business capability. Self-contained, no shared references. resources: - name: subscriptions-subscriptionId-providers-Microsoft.Resources-templateSpecs path: /subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs operations: - name: templatespecslistbysubscription method: GET description: Microsoft Bicep List Template Specs by subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $expand in: query type: string description: Allows for expansion of additional Template Spec details. Set to 'versions' to include version information. - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs operations: - name: templatespecslistbyresourcegroup method: GET description: Microsoft Bicep List Template Specs by resource group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $expand in: query type: string description: Allows for expansion of additional Template Spec details. Set to 'versions' to include version information. - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName} operations: - name: templatespecscreateorupdate method: PUT description: Microsoft Bicep Create or update a Template Spec outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: templatespecsget method: GET description: Microsoft Bicep Get a Template Spec outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $expand in: query type: string description: Allows for expansion of additional Template Spec details. Set to 'versions' to include version information. - name: templatespecsupdate method: PATCH description: Microsoft Bicep Update Template Spec tags outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: templatespecsdelete method: DELETE description: Microsoft Bicep Delete a Template Spec outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MICROSOFT_BICEP_API_KEY}}' exposes: - type: rest namespace: template-specs-template-specs-rest port: 8080 description: REST adapter for Microsoft Bicep Template Specs API — Template Specs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/subscriptions/{subscriptionid}/providers/microsoft-resources/templatespecs name: subscriptions-subscriptionid-providers-microsoft-resources-templatespecs description: REST surface for subscriptions-subscriptionId-providers-Microsoft.Resources-templateSpecs. operations: - method: GET name: templatespecslistbysubscription description: Microsoft Bicep List Template Specs by subscription call: template-specs-template-specs.templatespecslistbysubscription with: $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-resources/templatespecs name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: GET name: templatespecslistbyresourcegroup description: Microsoft Bicep List Template Specs by resource group call: template-specs-template-specs.templatespecslistbyresourcegroup with: $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-resources/templatespecs/{templatespecname} name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof. operations: - method: PUT name: templatespecscreateorupdate description: Microsoft Bicep Create or update a Template Spec call: template-specs-template-specs.templatespecscreateorupdate with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: templatespecsget description: Microsoft Bicep Get a Template Spec call: template-specs-template-specs.templatespecsget with: $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: templatespecsupdate description: Microsoft Bicep Update Template Spec tags call: template-specs-template-specs.templatespecsupdate with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: templatespecsdelete description: Microsoft Bicep Delete a Template Spec call: template-specs-template-specs.templatespecsdelete outputParameters: - type: object mapping: $. - type: mcp namespace: template-specs-template-specs-mcp port: 9090 transport: http description: MCP adapter for Microsoft Bicep Template Specs API — Template Specs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-bicep-list-template-specs description: Microsoft Bicep List Template Specs by subscription hints: readOnly: true destructive: false idempotent: true call: template-specs-template-specs.templatespecslistbysubscription with: $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-bicep-list-template-specs-2 description: Microsoft Bicep List Template Specs by resource group hints: readOnly: true destructive: false idempotent: true call: template-specs-template-specs.templatespecslistbyresourcegroup with: $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-bicep-create-update-template description: Microsoft Bicep Create or update a Template Spec hints: readOnly: false destructive: false idempotent: true call: template-specs-template-specs.templatespecscreateorupdate with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-bicep-get-template-spec description: Microsoft Bicep Get a Template Spec hints: readOnly: true destructive: false idempotent: true call: template-specs-template-specs.templatespecsget with: $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-bicep-update-template-spec description: Microsoft Bicep Update Template Spec tags hints: readOnly: false destructive: false idempotent: true call: template-specs-template-specs.templatespecsupdate with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-bicep-delete-template-spec description: Microsoft Bicep Delete a Template Spec hints: readOnly: false destructive: true idempotent: true call: template-specs-template-specs.templatespecsdelete outputParameters: - type: object mapping: $.