Snowflake · Capability

Snowflake Network Policy API — network-policy

Snowflake Network Policy API — network-policy. 4 operations. Lead operation: List Network Policies. Self-contained Naftiko capability covering one Snowflake business surface.

Run with Naftiko Snowflakenetwork-policy

What You Can Do

GET
Listnetworkpolicies — List Network Policies
/v1/api/v2/network-policies
POST
Createnetworkpolicy — Create a Network Policy
/v1/api/v2/network-policies
GET
Fetchnetworkpolicy — Fetch a Network Policy
/v1/api/v2/network-policies/{name}
DELETE
Deletenetworkpolicy — Delete a Network Policy
/v1/api/v2/network-policies/{name}

MCP Tools

list-network-policies

List Network Policies

read-only idempotent
create-network-policy

Create a Network Policy

fetch-network-policy

Fetch a Network Policy

read-only idempotent
delete-network-policy

Delete a Network Policy

idempotent

Capability Spec

network-policy-network-policy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Snowflake Network Policy API — network-policy
  description: 'Snowflake Network Policy API — network-policy. 4 operations. Lead operation: List Network Policies. Self-contained
    Naftiko capability covering one Snowflake business surface.'
  tags:
  - Snowflake
  - network-policy
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SNOWFLAKE_API_KEY: SNOWFLAKE_API_KEY
capability:
  consumes:
  - type: http
    namespace: network-policy-network-policy
    baseUri: https://org-account.snowflakecomputing.com
    description: Snowflake Network Policy API — network-policy business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-network-policies
      path: /api/v2/network-policies
      operations:
      - name: listnetworkpolicies
        method: GET
        description: List Network Policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createnetworkpolicy
        method: POST
        description: Create a Network Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-network-policies-name
      path: /api/v2/network-policies/{name}
      operations:
      - name: fetchnetworkpolicy
        method: GET
        description: Fetch a Network Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletenetworkpolicy
        method: DELETE
        description: Delete a Network Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: network-policy-network-policy-rest
    port: 8080
    description: REST adapter for Snowflake Network Policy API — network-policy. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/network-policies
      name: api-v2-network-policies
      description: REST surface for api-v2-network-policies.
      operations:
      - method: GET
        name: listnetworkpolicies
        description: List Network Policies
        call: network-policy-network-policy.listnetworkpolicies
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createnetworkpolicy
        description: Create a Network Policy
        call: network-policy-network-policy.createnetworkpolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/network-policies/{name}
      name: api-v2-network-policies-name
      description: REST surface for api-v2-network-policies-name.
      operations:
      - method: GET
        name: fetchnetworkpolicy
        description: Fetch a Network Policy
        call: network-policy-network-policy.fetchnetworkpolicy
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletenetworkpolicy
        description: Delete a Network Policy
        call: network-policy-network-policy.deletenetworkpolicy
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: network-policy-network-policy-mcp
    port: 9090
    transport: http
    description: MCP adapter for Snowflake Network Policy API — network-policy. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-network-policies
      description: List Network Policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: network-policy-network-policy.listnetworkpolicies
      outputParameters:
      - type: object
        mapping: $.
    - name: create-network-policy
      description: Create a Network Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: network-policy-network-policy.createnetworkpolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fetch-network-policy
      description: Fetch a Network Policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: network-policy-network-policy.fetchnetworkpolicy
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-network-policy
      description: Delete a Network Policy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: network-policy-network-policy.deletenetworkpolicy
      outputParameters:
      - type: object
        mapping: $.