Microsoft Azure · Capability

Microsoft Azure Metrics Advisor — Hook

Microsoft Azure Metrics Advisor — Hook. 5 operations. Lead operation: Microsoft Azure List All Hooks. Self-contained Naftiko capability covering one Microsoft Azure business surface.

Run with Naftiko Microsoft AzureHook

What You Can Do

GET
Microsoftazurelisthooks — Microsoft Azure List All Hooks
/v1/hooks
POST
Microsoftazurecreatehook — Microsoft Azure Create A New Hook
/v1/hooks
GET
Microsoftazuregethook — Microsoft Azure Get A Hook By Its Id
/v1/hooks/{hookid}
PATCH
Microsoftazureupdatehook — Microsoft Azure Update A Hook
/v1/hooks/{hookid}
DELETE
Microsoftazuredeletehook — Microsoft Azure Delete A Hook
/v1/hooks/{hookid}

MCP Tools

microsoft-azure-list-all-hooks

Microsoft Azure List All Hooks

read-only idempotent
microsoft-azure-create-new-hook

Microsoft Azure Create A New Hook

microsoft-azure-get-hook-its

Microsoft Azure Get A Hook By Its Id

read-only idempotent
microsoft-azure-update-hook

Microsoft Azure Update A Hook

idempotent
microsoft-azure-delete-hook

Microsoft Azure Delete A Hook

idempotent

Capability Spec

metrics-advisor-hook.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Azure Metrics Advisor — Hook
  description: 'Microsoft Azure Metrics Advisor — Hook. 5 operations. Lead operation: Microsoft Azure List All Hooks. Self-contained
    Naftiko capability covering one Microsoft Azure business surface.'
  tags:
  - Microsoft Azure
  - Hook
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_API_KEY: MICROSOFT_AZURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: metrics-advisor-hook
    baseUri: ''
    description: Microsoft Azure Metrics Advisor — Hook business capability. Self-contained, no shared references.
    resources:
    - name: hooks
      path: /hooks
      operations:
      - name: microsoftazurelisthooks
        method: GET
        description: Microsoft Azure List All Hooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hookName
          in: query
          type: string
          description: filter hook by its name
        - name: $skip
          in: query
          type: integer
          description: for paging, skipped number
        - name: $maxpagesize
          in: query
          type: integer
          description: the maximum number of items in one page
      - name: microsoftazurecreatehook
        method: POST
        description: Microsoft Azure Create A New Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: string
          description: Create hook request
          required: true
    - name: hooks-hookId
      path: /hooks/{hookId}
      operations:
      - name: microsoftazuregethook
        method: GET
        description: Microsoft Azure Get A Hook By Its Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hookId
          in: path
          type: string
          description: Hook unique ID
          required: true
      - name: microsoftazureupdatehook
        method: PATCH
        description: Microsoft Azure Update A Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hookId
          in: path
          type: string
          description: Hook unique ID
          required: true
        - name: body
          in: body
          type: string
          description: Update hook request
          required: true
      - name: microsoftazuredeletehook
        method: DELETE
        description: Microsoft Azure Delete A Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hookId
          in: path
          type: string
          description: Hook unique ID
          required: true
  exposes:
  - type: rest
    namespace: metrics-advisor-hook-rest
    port: 8080
    description: REST adapter for Microsoft Azure Metrics Advisor — Hook. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/hooks
      name: hooks
      description: REST surface for hooks.
      operations:
      - method: GET
        name: microsoftazurelisthooks
        description: Microsoft Azure List All Hooks
        call: metrics-advisor-hook.microsoftazurelisthooks
        with:
          hookName: rest.hookName
          $skip: rest.$skip
          $maxpagesize: rest.$maxpagesize
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: microsoftazurecreatehook
        description: Microsoft Azure Create A New Hook
        call: metrics-advisor-hook.microsoftazurecreatehook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/hooks/{hookid}
      name: hooks-hookid
      description: REST surface for hooks-hookId.
      operations:
      - method: GET
        name: microsoftazuregethook
        description: Microsoft Azure Get A Hook By Its Id
        call: metrics-advisor-hook.microsoftazuregethook
        with:
          hookId: rest.hookId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: microsoftazureupdatehook
        description: Microsoft Azure Update A Hook
        call: metrics-advisor-hook.microsoftazureupdatehook
        with:
          hookId: rest.hookId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: microsoftazuredeletehook
        description: Microsoft Azure Delete A Hook
        call: metrics-advisor-hook.microsoftazuredeletehook
        with:
          hookId: rest.hookId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: metrics-advisor-hook-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Azure Metrics Advisor — Hook. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: microsoft-azure-list-all-hooks
      description: Microsoft Azure List All Hooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metrics-advisor-hook.microsoftazurelisthooks
      with:
        hookName: tools.hookName
        $skip: tools.$skip
        $maxpagesize: tools.$maxpagesize
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-create-new-hook
      description: Microsoft Azure Create A New Hook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: metrics-advisor-hook.microsoftazurecreatehook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-get-hook-its
      description: Microsoft Azure Get A Hook By Its Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: metrics-advisor-hook.microsoftazuregethook
      with:
        hookId: tools.hookId
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-update-hook
      description: Microsoft Azure Update A Hook
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: metrics-advisor-hook.microsoftazureupdatehook
      with:
        hookId: tools.hookId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-delete-hook
      description: Microsoft Azure Delete A Hook
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: metrics-advisor-hook.microsoftazuredeletehook
      with:
        hookId: tools.hookId
      outputParameters:
      - type: object
        mapping: $.