TomTom · Capability

Search — Filters

Search — Filters. 4 operations. Lead operation: Geometry Filter. Self-contained Naftiko capability covering one Tomtom business surface.

Run with Naftiko TomtomFilters

What You Can Do

GET
Get — Geometry Filter
/v1/search/{versionnumber}/geometryfilter-ext
POST
Post — Geometry Filter
/v1/search/{versionnumber}/geometryfilter-ext
GET
Get — Routed Filter
/v1/search/{versionnumber}/routedfilter/{position}/{heading-ext}
POST
Post — Routed Filter
/v1/search/{versionnumber}/routedfilter/{position}/{heading-ext}

MCP Tools

geometry-filter

Geometry Filter

read-only idempotent
geometry-filter-2

Geometry Filter

routed-filter

Routed Filter

read-only idempotent
routed-filter-2

Routed Filter

Capability Spec

search-filters.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Search — Filters
  description: 'Search — Filters. 4 operations. Lead operation: Geometry Filter. Self-contained Naftiko capability covering
    one Tomtom business surface.'
  tags:
  - Tomtom
  - Filters
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TOMTOM_API_KEY: TOMTOM_API_KEY
capability:
  consumes:
  - type: http
    namespace: search-filters
    baseUri: https://api.tomtom.com
    description: Search — Filters business capability. Self-contained, no shared references.
    resources:
    - name: search-versionNumber-geometryFilter.{ext}
      path: /search/{versionNumber}/geometryFilter.{ext}
      operations:
      - name: get
        method: GET
        description: Geometry Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: geometryList
          in: query
          type: string
          description: List of geometries to filter by. Available types are CIRCLE (with the radius expressed in meters) and
            POLYGON.
          required: true
        - name: poiList
          in: query
          type: string
          description: List of POIs to filter. The only required attribute of a POI is position, everything else is optional
            and will be echoed back when passed in.
          required: true
      - name: post
        method: POST
        description: Geometry Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: search-versionNumber-routedFilter-position-heading}.{ext
      path: /search/{versionNumber}/routedFilter/{position}/{heading}.{ext}
      operations:
      - name: get
        method: GET
        description: Routed Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: heading
          in: path
          type: number
          description: The directional heading in degrees, usually similar to the course along a road segment. Entered in
            degrees, measured clockwise from north (so north is 0, east i
          required: true
        - name: poiList
          in: query
          type: string
          description: List of POIs to filter. The only required attribute of a POI is position, everything else is optional
            and will be echoed back when passed in.
          required: true
      - name: post
        method: POST
        description: Routed Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: heading
          in: path
          type: number
          description: The directional heading in degrees, usually similar to the course along a road segment. Entered in
            degrees, measured clockwise from north (so north is 0, east i
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: key
      value: '{{env.TOMTOM_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: search-filters-rest
    port: 8080
    description: REST adapter for Search — Filters. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/search/{versionnumber}/geometryfilter-ext
      name: search-versionnumber-geometryfilter-ext
      description: REST surface for search-versionNumber-geometryFilter.{ext}.
      operations:
      - method: GET
        name: get
        description: Geometry Filter
        call: search-filters.get
        with:
          geometryList: rest.geometryList
          poiList: rest.poiList
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Geometry Filter
        call: search-filters.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/search/{versionnumber}/routedfilter/{position}/{heading-ext}
      name: search-versionnumber-routedfilter-position-heading-ext
      description: REST surface for search-versionNumber-routedFilter-position-heading}.{ext.
      operations:
      - method: GET
        name: get
        description: Routed Filter
        call: search-filters.get
        with:
          heading: rest.heading
          poiList: rest.poiList
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Routed Filter
        call: search-filters.post
        with:
          heading: rest.heading
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: search-filters-mcp
    port: 9090
    transport: http
    description: MCP adapter for Search — Filters. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: geometry-filter
      description: Geometry Filter
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: search-filters.get
      with:
        geometryList: tools.geometryList
        poiList: tools.poiList
      outputParameters:
      - type: object
        mapping: $.
    - name: geometry-filter-2
      description: Geometry Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: search-filters.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: routed-filter
      description: Routed Filter
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: search-filters.get
      with:
        heading: tools.heading
        poiList: tools.poiList
      outputParameters:
      - type: object
        mapping: $.
    - name: routed-filter-2
      description: Routed Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: search-filters.post
      with:
        heading: tools.heading
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.