Amadeus · Capability

Trip Purpose Prediction — Trip Purpose Prediction

Trip Purpose Prediction — Trip Purpose Prediction. 1 operation(s). Lead operation: Amadeus Returns the Forecast Purpose of a Trip. Self-contained Naftiko capability covering one Amadeus business surface.

Run with Naftiko AmadeusTravelTrip Purpose Prediction

What You Can Do

GET
Gettrippurposeprediction — Amadeus Returns the Forecast Purpose of a Trip
/v1/travel/predictions/trip-purpose

MCP Tools

returns-forecast-purpose-trip

Amadeus Returns the Forecast Purpose of a Trip

read-only idempotent

Capability Spec

trip-purpose-prediction-trip-purpose-prediction.yaml Raw ↑
naftiko: "1.0.0-alpha2"
info:
  label: "Trip Purpose Prediction — Trip Purpose Prediction"
  description: 'Trip Purpose Prediction — Trip Purpose Prediction. 1 operation(s). Lead operation: Amadeus Returns the Forecast Purpose of a Trip. Self-contained Naftiko capability covering one Amadeus business surface.'
  tags:
    - Amadeus
    - Travel
    - Trip Purpose Prediction
  created: "2026-05-29"
  modified: "2026-05-29"
binds:
  - namespace: env
    keys:
      AMADEUS_TOKEN: AMADEUS_TOKEN
capability:
  consumes:
    - type: http
      namespace: trip-purpose-prediction-trip-purpose-prediction
      baseUri: https://test.api.amadeus.com/v1
      description: Trip Purpose Prediction — Trip Purpose Prediction business capability. Self-contained, no shared references.
      authentication:
        type: bearer
        token: '{{env.AMADEUS_TOKEN}}'
      resources:
        - name: travel-predictions-trip-purpose
          path: /travel/predictions/trip-purpose
          operations:
            - name: getTripPurposePrediction
              method: GET
              description: Amadeus Returns the Forecast Purpose of a Trip
              inputParameters:
                - name: originLocationCode
                  in: query
                  type: string
                  required: true
                  description: city/airport [IATA code](http://www.iata.org/publications/Pages/code-search.aspx) from which the traveler will depart, e.g. BOS for Boston
                - name: destinationLocationCode
                  in: query
                  type: string
                  required: true
                  description: city/airport [IATA code](http://www.iata.org/publications/Pages/code-search.aspx) to which the traveler is going, e.g. PAR for Paris
                - name: departureDate
                  in: query
                  type: string
                  required: true
                  description: the date on which the traveler will depart from the origin to go to the destination. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format, e.g. 2017-12-25
                - name: returnDate
                  in: query
                  type: string
                  required: true
                  description: the date on which the traveler will depart from the destination to return to the origin. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YYYY-MM-DD format, e.g. 2018-02-2
                - name: searchDate
                  in: query
                  type: string
                  required: false
                  description: the date on which the traveler is performing the search. If this parameter is not specified, current date will be used. Dates are specified in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) YY
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: trip-purpose-prediction-trip-purpose-prediction-rest
      port: 8080
      description: REST adapter for Trip Purpose Prediction — Trip Purpose Prediction. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/travel/predictions/trip-purpose
          name: travel-predictions-trip-purpose
          description: REST surface for travel-predictions-trip-purpose.
          operations:
            - method: GET
              name: getTripPurposePrediction
              description: Amadeus Returns the Forecast Purpose of a Trip
              call: trip-purpose-prediction-trip-purpose-prediction.getTripPurposePrediction
              with:
                originLocationCode: rest.originLocationCode
                destinationLocationCode: rest.destinationLocationCode
                departureDate: rest.departureDate
                returnDate: rest.returnDate
                searchDate: rest.searchDate
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: trip-purpose-prediction-trip-purpose-prediction-mcp
      port: 9090
      transport: http
      description: MCP adapter for Trip Purpose Prediction — Trip Purpose Prediction. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: returns-forecast-purpose-trip
          description: Amadeus Returns the Forecast Purpose of a Trip
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: trip-purpose-prediction-trip-purpose-prediction.getTripPurposePrediction
          with:
            originLocationCode: tools.originLocationCode
            destinationLocationCode: tools.destinationLocationCode
            departureDate: tools.departureDate
            returnDate: tools.returnDate
            searchDate: tools.searchDate
          outputParameters:
            - type: object
              mapping: $.