VTEX · Capability

VTex Legacy Search API — Autocomplete

VTex Legacy Search API — Autocomplete. 1 operations. Lead operation: VTex Product Search Autocomplete. Self-contained Naftiko capability covering one Vtex business surface.

Run with Naftiko VtexAutocomplete

What You Can Do

GET
Autocomplete — VTex Product Search Autocomplete
/v1/buscaautocomplete

MCP Tools

vtex-product-search-autocomplete

VTex Product Search Autocomplete

read-only idempotent

Capability Spec

legacy-search-autocomplete.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: VTex Legacy Search API — Autocomplete
  description: 'VTex Legacy Search API — Autocomplete. 1 operations. Lead operation: VTex Product Search Autocomplete. Self-contained
    Naftiko capability covering one Vtex business surface.'
  tags:
  - Vtex
  - Autocomplete
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VTEX_API_KEY: VTEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: legacy-search-autocomplete
    baseUri: https://{accountName}.{environment}.com.br
    description: VTex Legacy Search API — Autocomplete business capability. Self-contained, no shared references.
    resources:
    - name: buscaautocomplete
      path: /buscaautocomplete
      operations:
      - name: autocomplete
        method: GET
        description: VTex Product Search Autocomplete
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          description: Type of the content being sent
          required: true
        - name: Accept
          in: header
          type: string
          description: HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand
          required: true
        - name: productNameContains
          in: query
          type: string
          description: Part of the string that will be searched.
          required: true
    authentication:
      type: apikey
      key: X-VTEX-API-AppKey
      value: '{{env.VTEX_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: legacy-search-autocomplete-rest
    port: 8080
    description: REST adapter for VTex Legacy Search API — Autocomplete. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/buscaautocomplete
      name: buscaautocomplete
      description: REST surface for buscaautocomplete.
      operations:
      - method: GET
        name: autocomplete
        description: VTex Product Search Autocomplete
        call: legacy-search-autocomplete.autocomplete
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          productNameContains: rest.productNameContains
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: legacy-search-autocomplete-mcp
    port: 9090
    transport: http
    description: MCP adapter for VTex Legacy Search API — Autocomplete. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: vtex-product-search-autocomplete
      description: VTex Product Search Autocomplete
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: legacy-search-autocomplete.autocomplete
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        productNameContains: tools.productNameContains
      outputParameters:
      - type: object
        mapping: $.