Ubuntu · Capability

Snap Store Devices API — Search

Snap Store Devices API — Search. 1 operations. Lead operation: Search Snaps. Self-contained Naftiko capability covering one Ubuntu business surface.

Run with Naftiko UbuntuSearch

What You Can Do

GET
Searchsnaps — Search Snaps
/v1/v2/snaps/search

MCP Tools

search-snaps

Search Snaps

read-only idempotent

Capability Spec

snap-store-search.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Snap Store Devices API — Search
  description: 'Snap Store Devices API — Search. 1 operations. Lead operation: Search Snaps. Self-contained Naftiko capability
    covering one Ubuntu business surface.'
  tags:
  - Ubuntu
  - Search
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UBUNTU_API_KEY: UBUNTU_API_KEY
capability:
  consumes:
  - type: http
    namespace: snap-store-search
    baseUri: https://api.snapcraft.io
    description: Snap Store Devices API — Search business capability. Self-contained, no shared references.
    resources:
    - name: v2-snaps-search
      path: /v2/snaps/search
      operations:
      - name: searchsnaps
        method: GET
        description: Search Snaps
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Search query string.
        - name: category
          in: query
          type: string
          description: Filter by snap category.
        - name: scope
          in: query
          type: string
          description: Search scope. Use 'wide' for cross-store search.
        - name: fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response.
        - name: Snap-Device-Series
          in: header
          type: string
          description: Snap device series identifier.
          required: true
        - name: User-Agent
          in: header
          type: string
          description: Client user agent string.
          required: true
  exposes:
  - type: rest
    namespace: snap-store-search-rest
    port: 8080
    description: REST adapter for Snap Store Devices API — Search. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/snaps/search
      name: v2-snaps-search
      description: REST surface for v2-snaps-search.
      operations:
      - method: GET
        name: searchsnaps
        description: Search Snaps
        call: snap-store-search.searchsnaps
        with:
          q: rest.q
          category: rest.category
          scope: rest.scope
          fields: rest.fields
          Snap-Device-Series: rest.Snap-Device-Series
          User-Agent: rest.User-Agent
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: snap-store-search-mcp
    port: 9090
    transport: http
    description: MCP adapter for Snap Store Devices API — Search. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: search-snaps
      description: Search Snaps
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: snap-store-search.searchsnaps
      with:
        q: tools.q
        category: tools.category
        scope: tools.scope
        fields: tools.fields
        Snap-Device-Series: tools.Snap-Device-Series
        User-Agent: tools.User-Agent
      outputParameters:
      - type: object
        mapping: $.